mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Revisit documentation that mentions Gradle "compile" configuration
See gh-19797
This commit is contained in:
parent
d421c63747
commit
991bcf5ce4
@ -27,7 +27,7 @@ For Gradle, use the following declaration:
|
|||||||
[indent=0]
|
[indent=0]
|
||||||
----
|
----
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("org.springframework.boot:spring-boot-starter-actuator")
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -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"]
|
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
||||||
----
|
----
|
||||||
configurations {
|
|
||||||
// exclude Reactor Netty
|
|
||||||
compile.exclude module: 'spring-boot-starter-reactor-netty'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
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
|
// 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"]
|
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
||||||
----
|
----
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.springframework.boot:spring-boot-starter-web'
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
compile 'org.springframework.boot:spring-boot-starter-log4j2'
|
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
@ -2898,12 +2895,11 @@ The following example shows how to do so in Gradle:
|
|||||||
|
|
||||||
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
|
||||||
----
|
----
|
||||||
configurations {
|
|
||||||
compile.exclude module: "lettuce"
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
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'
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
@ -36,7 +36,7 @@ For Gradle, use the following declaration:
|
|||||||
[source,groovy,indent=0]
|
[source,groovy,indent=0]
|
||||||
----
|
----
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("org.springframework.boot:spring-boot-starter-actuator")
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user