Skip to content

Commit ef13f04

Browse files
committed
Merge pull request #19797 from dreis2211
* pr/19797: Revisit documentation that mentions Gradle "compile" configuration Closes gh-19797
2 parents d421c63 + 991bcf5 commit ef13f04

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

spring-boot-project/spring-boot-actuator/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For Gradle, use the following declaration:
2727
[indent=0]
2828
----
2929
dependencies {
30-
compile("org.springframework.boot:spring-boot-starter-actuator")
30+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
3131
}
3232
----
3333

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -448,15 +448,12 @@ The following Gradle example shows how to exclude Netty and include Undertow for
448448

449449
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
450450
----
451-
configurations {
452-
// exclude Reactor Netty
453-
compile.exclude module: 'spring-boot-starter-reactor-netty'
454-
}
455-
456451
dependencies {
457-
compile 'org.springframework.boot:spring-boot-starter-webflux'
452+
implementation('org.springframework.boot:spring-boot-starter-webflux') {
453+
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-reactor-netty'
454+
}
458455
// Use Undertow instead
459-
compile 'org.springframework.boot:spring-boot-starter-undertow'
456+
implementation 'org.springframework.boot:spring-boot-starter-undertow'
460457
// ...
461458
}
462459
----
@@ -1435,8 +1432,8 @@ And the following example shows one way to set up the starters in Gradle:
14351432
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
14361433
----
14371434
dependencies {
1438-
compile 'org.springframework.boot:spring-boot-starter-web'
1439-
compile 'org.springframework.boot:spring-boot-starter-log4j2'
1435+
implementation 'org.springframework.boot:spring-boot-starter-web'
1436+
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
14401437
}
14411438
14421439
configurations {
@@ -2898,12 +2895,11 @@ The following example shows how to do so in Gradle:
28982895

28992896
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
29002897
----
2901-
configurations {
2902-
compile.exclude module: "lettuce"
2903-
}
2904-
29052898
dependencies {
2906-
compile("redis.clients:jedis")
2899+
implementation('org.springframework.boot:spring-boot-starter-data-redis') {
2900+
exclude group: 'io.lettuce', module: 'lettuce-core'
2901+
}
2902+
implementation 'redis.clients:jedis'
29072903
// ...
29082904
}
29092905
----

spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For Gradle, use the following declaration:
3636
[source,groovy,indent=0]
3737
----
3838
dependencies {
39-
compile("org.springframework.boot:spring-boot-starter-actuator")
39+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
4040
}
4141
----
4242

0 commit comments

Comments
 (0)