From 991bcf5ce4cd140d42e8c39b5a77699a6fae9254 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Fri, 17 Jan 2020 20:51:21 +0100 Subject: [PATCH] Revisit documentation that mentions Gradle "compile" configuration See gh-19797 --- .../spring-boot-actuator/README.adoc | 2 +- .../src/docs/asciidoc/howto.adoc | 24 ++++++++----------- .../asciidoc/production-ready-features.adoc | 2 +- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/README.adoc b/spring-boot-project/spring-boot-actuator/README.adoc index d577588c7f3..3c1bb95eb9a 100644 --- a/spring-boot-project/spring-boot-actuator/README.adoc +++ b/spring-boot-project/spring-boot-actuator/README.adoc @@ -27,7 +27,7 @@ For Gradle, use the following declaration: [indent=0] ---- dependencies { - compile("org.springframework.boot:spring-boot-starter-actuator") + implementation 'org.springframework.boot:spring-boot-starter-actuator' } ---- diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc index 3fbaf0cd48d..511a2b0415c 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc @@ -448,15 +448,12 @@ The following Gradle example shows how to exclude Netty and include Undertow for [source,groovy,indent=0,subs="verbatim,quotes,attributes"] ---- - configurations { - // exclude Reactor Netty - compile.exclude module: 'spring-boot-starter-reactor-netty' - } - dependencies { - compile 'org.springframework.boot:spring-boot-starter-webflux' + implementation('org.springframework.boot:spring-boot-starter-webflux') { + exclude group: 'org.springframework.boot', module: 'spring-boot-starter-reactor-netty' + } // Use Undertow instead - compile 'org.springframework.boot:spring-boot-starter-undertow' + implementation 'org.springframework.boot:spring-boot-starter-undertow' // ... } ---- @@ -1435,8 +1432,8 @@ And the following example shows one way to set up the starters in Gradle: [source,groovy,indent=0,subs="verbatim,quotes,attributes"] ---- dependencies { - compile 'org.springframework.boot:spring-boot-starter-web' - compile 'org.springframework.boot:spring-boot-starter-log4j2' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-log4j2' } configurations { @@ -2898,12 +2895,11 @@ The following example shows how to do so in Gradle: [source,groovy,indent=0,subs="verbatim,quotes,attributes"] ---- - configurations { - compile.exclude module: "lettuce" - } - dependencies { - compile("redis.clients:jedis") + implementation('org.springframework.boot:spring-boot-starter-data-redis') { + exclude group: 'io.lettuce', module: 'lettuce-core' + } + implementation 'redis.clients:jedis' // ... } ---- diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc index 1537c2f4f6d..b041e381632 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc @@ -36,7 +36,7 @@ For Gradle, use the following declaration: [source,groovy,indent=0] ---- dependencies { - compile("org.springframework.boot:spring-boot-starter-actuator") + implementation 'org.springframework.boot:spring-boot-starter-actuator' } ----