Skip to content

Commit 72f703f

Browse files
committed
Improve dependencies declaration in documents
Make it friendly for Gradle’s Kotlin DSL as possible. Signed-off-by: Yanming Zhou <[email protected]>
1 parent 44da281 commit 72f703f

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/logging.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ To do so, declare a dependency on the Log4j 2 starter and tell Gradle that any o
159159
[source,gradle]
160160
----
161161
dependencies {
162-
implementation "org.springframework.boot:spring-boot-starter-log4j2"
162+
implementation("org.springframework.boot:spring-boot-starter-log4j2")
163163
modules {
164164
module("org.springframework.boot:spring-boot-starter-logging") {
165165
replacedBy("org.springframework.boot:spring-boot-starter-log4j2", "Use Log4j2 instead of Logback")

documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/nosql.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The following example shows how to accomplish this in Gradle:
3838
[source,gradle]
3939
----
4040
dependencies {
41-
implementation('org.springframework.boot:spring-boot-starter-data-redis') {
41+
implementation("org.springframework.boot:spring-boot-starter-data-redis") {
4242
exclude group: 'io.lettuce', module: 'lettuce-core'
4343
}
44-
implementation 'redis.clients:jedis'
44+
implementation("redis.clients:jedis")
4545
// ...
4646
}
4747
----

documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/webserver.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ The following Gradle example configures the necessary dependencies and a {url-gr
4545
[source,gradle]
4646
----
4747
dependencies {
48-
implementation "org.springframework.boot:spring-boot-starter-tomcat"
49-
implementation "org.springframework.boot:spring-boot-starter-webflux"
48+
implementation("org.springframework.boot:spring-boot-starter-tomcat")
49+
implementation("org.springframework.boot:spring-boot-starter-webflux")
5050
modules {
5151
module("org.springframework.boot:spring-boot-starter-reactor-netty") {
5252
replacedBy("org.springframework.boot:spring-boot-starter-tomcat", "Use Tomcat instead of Reactor Netty")

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/actuator/enabling.adoc

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

documentation/spring-boot-docs/src/docs/antora/modules/tutorial/pages/first-application/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ To add the necessary dependencies, edit your `build.gradle` and add the `spring-
261261
[source,gradle]
262262
----
263263
dependencies {
264-
implementation 'org.springframework.boot:spring-boot-starter-web'
264+
implementation("org.springframework.boot:spring-boot-starter-web")
265265
}
266266
----
267267

module/spring-boot-actuator/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For Gradle, use the following declaration:
3030
[source]
3131
----
3232
dependencies {
33-
implementation 'org.springframework.boot:spring-boot-starter-actuator'
33+
implementation("org.springframework.boot:spring-boot-starter-actuator")
3434
}
3535
----
3636

0 commit comments

Comments
 (0)