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:
Phillip Webb
2020-01-22 14:09:17 -08:00
parent 0209cd3e4c
commit e0013454b5
174 changed files with 1481 additions and 1481 deletions

View File

@@ -20,13 +20,13 @@ dependencies {
antUnit "org.apache.ant:ant-antunit:1.3"
antIvy "org.apache.ivy:ivy:2.4.0"
api platform(project(":spring-boot-project:spring-boot-dependencies"))
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
compileOnly project(":spring-boot-project:spring-boot-tools:spring-boot-loader")
compileOnly "org.apache.ant:ant:${antVersion}"
compileOnly(project(":spring-boot-project:spring-boot-tools:spring-boot-loader"))
compileOnly("org.apache.ant:ant:${antVersion}")
implementation project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools")
implementation "org.springframework:spring-core"
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
implementation("org.springframework:spring-core")
}
task copyIntegrationTestSources(type: Copy) {

View File

@@ -7,9 +7,9 @@ plugins {
description = "Spring Boot AutoConfigure Annotation Processor"
dependencies {
testImplementation enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies"))
testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testImplementation "org.assertj:assertj-core"
testImplementation "org.springframework:spring-core"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-core")
testImplementation("org.junit.jupiter:junit-jupiter")
}

View File

@@ -8,21 +8,21 @@ plugins {
description = "Spring Boot Buildpack Platform"
dependencies {
api platform(project(":spring-boot-project:spring-boot-parent"))
api "com.fasterxml.jackson.core:jackson-databind"
api "com.fasterxml.jackson.module:jackson-module-parameter-names"
api "net.java.dev.jna:jna-platform"
api "org.apache.commons:commons-compress:1.19"
api "org.apache.httpcomponents:httpclient"
api "org.springframework:spring-core"
api(platform(project(":spring-boot-project:spring-boot-parent")))
api("com.fasterxml.jackson.core:jackson-databind")
api("com.fasterxml.jackson.module:jackson-module-parameter-names")
api("net.java.dev.jna:jna-platform")
api("org.apache.commons:commons-compress:1.19")
api("org.apache.httpcomponents:httpclient")
api("org.springframework:spring-core")
testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testImplementation "com.jayway.jsonpath:json-path"
testImplementation "org.assertj:assertj-core"
testImplementation "org.testcontainers:testcontainers"
testImplementation "org.hamcrest:hamcrest"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.mockito:mockito-junit-jupiter"
testImplementation "org.skyscreamer:jsonassert"
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("com.jayway.jsonpath:json-path")
testImplementation("org.assertj:assertj-core")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.hamcrest:hamcrest")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.skyscreamer:jsonassert")
}

View File

@@ -8,11 +8,11 @@ plugins {
description = "Spring Boot Configuration Metadata"
dependencies {
api platform(project(path: ":spring-boot-project:spring-boot-parent"))
api(platform(project(path: ":spring-boot-project:spring-boot-parent")))
implementation "com.vaadin.external.google:android-json"
implementation("com.vaadin.external.google:android-json")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.assertj:assertj-core"
testImplementation "org.springframework:spring-core"
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-core")
}

View File

@@ -15,13 +15,13 @@ sourceSets {
}
dependencies {
testImplementation enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies"))
testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testImplementation "javax.validation:validation-api"
testImplementation "org.assertj:assertj-core"
testImplementation "org.hamcrest:hamcrest-library"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.projectlombok:lombok"
testImplementation "org.springframework:spring-core"
testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("javax.validation:validation-api")
testImplementation("org.assertj:assertj-core")
testImplementation("org.hamcrest:hamcrest-library")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.projectlombok:lombok")
testImplementation("org.springframework:spring-core")
}

View File

@@ -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 {

View File

@@ -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[]

View File

@@ -8,7 +8,7 @@ repositories {
}
dependencies {
runtimeOnly 'org.jruby:jruby-complete:1.7.25'
runtimeOnly('org.jruby:jruby-complete:1.7.25')
}
bootJar {

View File

@@ -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[]

View File

@@ -4,5 +4,5 @@ plugins {
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation('org.springframework.boot:spring-boot-starter-web')
}

View File

@@ -21,7 +21,7 @@ repositories {
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
}
task kotlinVersion {

View File

@@ -8,5 +8,5 @@ repositories {
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation('org.springframework.boot:spring-boot-starter')
}

View File

@@ -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"
}

View File

@@ -8,14 +8,14 @@ plugins {
description = "Spring Boot Layers Tools"
dependencies {
api platform(project(":spring-boot-project:spring-boot-parent"))
api(platform(project(":spring-boot-project:spring-boot-parent")))
implementation project(":spring-boot-project:spring-boot-tools:spring-boot-loader")
implementation project(":spring-boot-project:spring-boot")
implementation "org.springframework:spring-core"
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader"))
implementation(project(":spring-boot-project:spring-boot"))
implementation("org.springframework:spring-core")
testImplementation "org.assertj:assertj-core"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
}

View File

@@ -14,18 +14,18 @@ configurations {
}
dependencies {
api platform(project(":spring-boot-project:spring-boot-parent"))
api "org.apache.commons:commons-compress"
api "org.springframework:spring-core"
api(platform(project(":spring-boot-project:spring-boot-parent")))
api("org.apache.commons:commons-compress")
api("org.springframework:spring-core")
compileOnly "ch.qos.logback:logback-classic"
compileOnly("ch.qos.logback:logback-classic")
loader project(":spring-boot-project:spring-boot-tools:spring-boot-loader")
loader(project(":spring-boot-project:spring-boot-tools:spring-boot-loader"))
testImplementation "org.assertj:assertj-core"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.zeroturnaround:zt-zip:1.13"
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.zeroturnaround:zt-zip:1.13")
}
sourceSets {

View File

@@ -8,19 +8,19 @@ plugins {
description = "Spring Boot Loader"
dependencies {
api platform(project(":spring-boot-project:spring-boot-dependencies"))
api(platform(project(":spring-boot-project:spring-boot-dependencies")))
compileOnly "org.springframework:spring-core"
compileOnly("org.springframework:spring-core")
testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testImplementation "org.assertj:assertj-core"
testImplementation "org.awaitility:awaitility"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.springframework:spring-test"
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("org.assertj:assertj-core")
testImplementation("org.awaitility:awaitility")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.springframework:spring-test")
testRuntimeOnly "ch.qos.logback:logback-classic"
testRuntimeOnly "org.bouncycastle:bcprov-jdk16:1.46"
testRuntimeOnly "org.slf4j:jcl-over-slf4j"
testRuntimeOnly "org.springframework:spring-webmvc"
testRuntimeOnly("ch.qos.logback:logback-classic")
testRuntimeOnly("org.bouncycastle:bcprov-jdk16:1.46")
testRuntimeOnly("org.slf4j:jcl-over-slf4j")
testRuntimeOnly("org.springframework:spring-webmvc")
}

View File

@@ -14,30 +14,30 @@ configurations {
}
dependencies {
api platform(project(":spring-boot-project:spring-boot-parent"))
api project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform")
api(platform(project(":spring-boot-project:spring-boot-parent")))
api(project(":spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform"))
compileOnly "org.apache.maven.plugin-tools:maven-plugin-annotations"
compileOnly "org.sonatype.plexus:plexus-build-api"
compileOnly("org.apache.maven.plugin-tools:maven-plugin-annotations")
compileOnly("org.sonatype.plexus:plexus-build-api")
implementation project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools")
implementation "org.apache.maven.shared:maven-common-artifact-filters"
implementation "org.apache.maven:maven-plugin-api"
implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
implementation("org.apache.maven.shared:maven-common-artifact-filters")
implementation("org.apache.maven:maven-plugin-api")
intTestImplementation platform(project(":spring-boot-project:spring-boot-parent"))
intTestImplementation "org.apache.maven.shared:maven-invoker"
intTestImplementation "org.assertj:assertj-core"
intTestImplementation "org.junit.jupiter:junit-jupiter"
intTestImplementation(platform(project(":spring-boot-project:spring-boot-parent")))
intTestImplementation("org.apache.maven.shared:maven-invoker")
intTestImplementation("org.assertj:assertj-core")
intTestImplementation("org.junit.jupiter:junit-jupiter")
optional platform(project(":spring-boot-project:spring-boot-parent"))
optional "org.apache.maven.plugins:maven-shade-plugin"
optional(platform(project(":spring-boot-project:spring-boot-parent")))
optional("org.apache.maven.plugins:maven-shade-plugin")
runtimeOnly "org.sonatype.plexus:plexus-build-api"
runtimeOnly("org.sonatype.plexus:plexus-build-api")
testImplementation "org.assertj:assertj-core"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.springframework:spring-core"
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.springframework:spring-core")
}
syncDocumentationSourceForAsciidoctor {

View File

@@ -7,33 +7,33 @@ plugins {
description = "Spring Boot Testing Support"
dependencies {
api platform(project(path: ":spring-boot-project:spring-boot-parent"))
api(platform(project(path: ":spring-boot-project:spring-boot-parent")))
compileOnly "com.datastax.oss:java-driver-core"
compileOnly "javax.servlet:javax.servlet-api"
compileOnly "junit:junit"
compileOnly "org.junit.jupiter:junit-jupiter"
compileOnly "org.junit.platform:junit-platform-engine"
compileOnly "org.mockito:mockito-core"
compileOnly "org.neo4j:neo4j-ogm-core"
compileOnly "org.springframework:spring-context"
compileOnly "org.springframework.data:spring-data-redis"
compileOnly "org.testcontainers:testcontainers"
compileOnly("com.datastax.oss:java-driver-core")
compileOnly("javax.servlet:javax.servlet-api")
compileOnly("junit:junit")
compileOnly("org.junit.jupiter:junit-jupiter")
compileOnly("org.junit.platform:junit-platform-engine")
compileOnly("org.mockito:mockito-core")
compileOnly("org.neo4j:neo4j-ogm-core")
compileOnly("org.springframework:spring-context")
compileOnly("org.springframework.data:spring-data-redis")
compileOnly("org.testcontainers:testcontainers")
implementation "org.apache.maven.resolver:maven-resolver-connector-basic"
implementation "org.apache.maven.resolver:maven-resolver-impl"
implementation "org.apache.maven:maven-resolver-provider"
implementation("org.apache.maven.resolver:maven-resolver-connector-basic")
implementation("org.apache.maven.resolver:maven-resolver-impl")
implementation("org.apache.maven:maven-resolver-provider")
implementation("org.apache.maven.resolver:maven-resolver-transport-http") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
implementation "org.assertj:assertj-core"
implementation "org.hamcrest:hamcrest-core"
implementation "org.hamcrest:hamcrest-library"
implementation "org.springframework:spring-core"
implementation("org.assertj:assertj-core")
implementation("org.hamcrest:hamcrest-core")
implementation("org.hamcrest:hamcrest-library")
implementation("org.springframework:spring-core")
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.springframework:spring-context"
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.springframework:spring-context")
testRuntimeOnly "org.hibernate.validator:hibernate-validator"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
testRuntimeOnly("org.hibernate.validator:hibernate-validator")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}