Use parentheses when declaring dependencies
Update all dependencies declarations to use the form `scope(reference)` rather than `scope reference`. Prior to this commit we declared dependencies without parentheses unless we were forced to add them due to an `exclude`.
This commit is contained in:
@@ -26,21 +26,21 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api platform(project(":spring-boot-project:spring-boot-dependencies"))
|
||||
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
||||
|
||||
asciidoctorExtensions "io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.3.0.RELEASE"
|
||||
asciidoctorExtensions("io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.3.0.RELEASE")
|
||||
|
||||
implementation project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools")
|
||||
implementation "io.spring.gradle:dependency-management-plugin"
|
||||
implementation "org.apache.commons:commons-compress"
|
||||
implementation "org.springframework:spring-core"
|
||||
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
|
||||
implementation("io.spring.gradle:dependency-management-plugin")
|
||||
implementation("org.apache.commons:commons-compress")
|
||||
implementation("org.springframework:spring-core")
|
||||
|
||||
optional platform(project(":spring-boot-project:spring-boot-dependencies"))
|
||||
optional "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50"
|
||||
optional(platform(project(":spring-boot-project:spring-boot-dependencies")))
|
||||
optional("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50")
|
||||
|
||||
testImplementation "org.junit.jupiter:junit-jupiter"
|
||||
testImplementation "org.assertj:assertj-core"
|
||||
testImplementation "org.mockito:mockito-core"
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testImplementation("org.assertj:assertj-core")
|
||||
testImplementation("org.mockito:mockito-core")
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
|
||||
@@ -7,7 +7,7 @@ apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
// tag::dependencies[]
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
||||
implementation('org.springframework.boot:spring-boot-starter-web')
|
||||
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
|
||||
}
|
||||
// end::dependencies[]
|
||||
|
||||
@@ -8,7 +8,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
runtimeOnly 'org.jruby:jruby-complete:1.7.25'
|
||||
runtimeOnly('org.jruby:jruby-complete:1.7.25')
|
||||
}
|
||||
|
||||
bootJar {
|
||||
|
||||
@@ -7,7 +7,7 @@ apply plugin: 'io.spring.dependency-management'
|
||||
|
||||
// tag::dependencies[]
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||
implementation('org.springframework.boot:spring-boot-starter-web')
|
||||
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
|
||||
}
|
||||
// end::dependencies[]
|
||||
|
||||
@@ -4,5 +4,5 @@ plugins {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation('org.springframework.boot:spring-boot-starter-web')
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
||||
implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
|
||||
}
|
||||
|
||||
task kotlinVersion {
|
||||
|
||||
@@ -8,5 +8,5 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter'
|
||||
implementation('org.springframework.boot:spring-boot-starter')
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.apache.commons:commons-lang3:3.6"
|
||||
implementation("org.apache.commons:commons-lang3:3.6")
|
||||
provided "org.apache.commons:commons-lang3:3.6"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user