Skip to content

Commit daeca9f

Browse files
committed
Restore Boot 2.2's compile-scoped dependencies
Fixes gh-21507
1 parent 210e565 commit daeca9f

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ dependencies {
2323
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
2424
api(project(":spring-boot-project:spring-boot-actuator"))
2525

26-
implementation(project(":spring-boot-project:spring-boot"))
27-
implementation(project(":spring-boot-project:spring-boot-autoconfigure"))
26+
api(project(":spring-boot-project:spring-boot"))
27+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
28+
2829
implementation("com.fasterxml.jackson.core:jackson-databind")
2930
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
30-
implementation("org.springframework:spring-core")
31-
implementation("org.springframework:spring-context")
3231

3332
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
3433
optional("ch.qos.logback:logback-classic")

spring-boot-project/spring-boot-actuator/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ description = "Spring Boot Actuator"
1010

1111
dependencies {
1212
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
13-
14-
implementation(project(":spring-boot-project:spring-boot"))
13+
api(project(":spring-boot-project:spring-boot"))
1514

1615
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
1716
optional("com.fasterxml.jackson.core:jackson-databind")

spring-boot-project/spring-boot-devtools/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ configurations {
1616

1717
dependencies {
1818
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
19-
20-
implementation(project(":spring-boot-project:spring-boot"))
21-
implementation(project(":spring-boot-project:spring-boot-autoconfigure"))
19+
api(project(":spring-boot-project:spring-boot"))
20+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
2221

2322
intTestDependencies(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
2423

spring-boot-project/spring-boot-properties-migrator/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ description = "Spring Boot Properties Migrator"
99

1010
dependencies {
1111
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
12-
13-
implementation(project(":spring-boot-project:spring-boot"))
14-
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata"))
12+
api(project(":spring-boot-project:spring-boot"))
13+
api(project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata"))
1514

1615
testImplementation(project(":spring-boot-project:spring-boot-test"))
1716
testImplementation("org.junit.jupiter:junit-jupiter")

spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ description = "Spring Boot Test AutoConfigure"
1010

1111
dependencies {
1212
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
13-
14-
implementation(project(":spring-boot-project:spring-boot"))
15-
implementation(project(":spring-boot-project:spring-boot-test"))
16-
implementation(project(":spring-boot-project:spring-boot-autoconfigure"))
13+
api(project(":spring-boot-project:spring-boot"))
14+
api(project(":spring-boot-project:spring-boot-test"))
15+
api(project(":spring-boot-project:spring-boot-autoconfigure"))
1716

1817
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
1918
optional("javax.json.bind:javax.json.bind-api")

spring-boot-project/spring-boot-test/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ description = "Spring Boot Test"
1111

1212
dependencies {
1313
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
14-
15-
implementation(project(":spring-boot-project:spring-boot"))
14+
api(project(":spring-boot-project:spring-boot"))
1615

1716
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
1817
optional("com.fasterxml.jackson.core:jackson-databind")

0 commit comments

Comments
 (0)