Commit 0209cd3e authored by Phillip Webb's avatar Phillip Webb

Polish quote form used in Gradle scripts

Replace Gradle single quote strings with the double quote form
whenever possible. The change helps to being consistency to the
dependencies section where mostly single quotes were used, but
occasionally double quotes were required due to `${}` references.
parent ed6fbc6b
plugins { plugins {
id 'org.jetbrains.kotlin.jvm' apply false // https://youtrack.jetbrains.com/issue/KT-30276 id "org.jetbrains.kotlin.jvm" apply false // https://youtrack.jetbrains.com/issue/KT-30276
} }
description = 'Spring Boot Build' description = "Spring Boot Build"
allprojects { allprojects {
group 'org.springframework.boot' group "org.springframework.boot"
repositories { repositories {
mavenCentral() mavenCentral()
maven { url 'https://repo.spring.io/milestone' } maven { url "https://repo.spring.io/milestone" }
maven { url 'https://repo.spring.io/snapshot' } maven { url "https://repo.spring.io/snapshot" }
} }
configurations.all { configurations.all {
resolutionStrategy.cacheChangingModulesFor 60, 'minutes' resolutionStrategy.cacheChangingModulesFor 60, "minutes"
} }
} }
plugins { plugins {
id 'java-gradle-plugin' id "java-gradle-plugin"
id 'io.spring.javaformat' version "${javaFormatVersion}" id "io.spring.javaformat" version "${javaFormatVersion}"
id 'checkstyle' id "checkstyle"
} }
repositories { repositories {
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
maven { url 'https://repo.spring.io/release' } maven { url "https://repo.spring.io/release" }
} }
sourceCompatibility = 1.8 sourceCompatibility = 1.8
...@@ -15,22 +15,22 @@ targetCompatibility = 1.8 ...@@ -15,22 +15,22 @@ targetCompatibility = 1.8
dependencies { dependencies {
checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}" checkstyle "io.spring.javaformat:spring-javaformat-checkstyle:${javaFormatVersion}"
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0' implementation "com.fasterxml.jackson.core:jackson-databind:2.10.0"
implementation 'commons-codec:commons-codec:1.13' implementation "commons-codec:commons-codec:1.13"
implementation 'org.apache.maven:maven-embedder:3.6.2' implementation "org.apache.maven:maven-embedder:3.6.2"
implementation 'org.asciidoctor:asciidoctor-gradle-jvm:2.4.0' implementation "org.asciidoctor:asciidoctor-gradle-jvm:2.4.0"
implementation 'org.springframework:spring-core:5.2.2.RELEASE' implementation "org.springframework:spring-core:5.2.2.RELEASE"
implementation 'org.springframework:spring-web:5.2.2.RELEASE' implementation "org.springframework:spring-web:5.2.2.RELEASE"
implementation 'com.google.code.gson:gson:2.8.5' implementation "com.google.code.gson:gson:2.8.5"
implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}" implementation "io.spring.javaformat:spring-javaformat-gradle-plugin:${javaFormatVersion}"
testImplementation 'org.assertj:assertj-core:3.11.1' testImplementation "org.assertj:assertj-core:3.11.1"
testImplementation 'org.apache.logging.log4j:log4j-core:2.12.1' testImplementation "org.apache.logging.log4j:log4j-core:2.12.1"
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2' testImplementation "org.junit.jupiter:junit-jupiter:5.5.2"
} }
checkstyle { checkstyle {
def archive = configurations.checkstyle.filter { it.name.startsWith('spring-javaformat-checkstyle')} def archive = configurations.checkstyle.filter { it.name.startsWith("spring-javaformat-checkstyle")}
config = resources.text.fromArchiveEntry(archive, 'io/spring/javaformat/checkstyle/checkstyle.xml') config = resources.text.fromArchiveEntry(archive, "io/spring/javaformat/checkstyle/checkstyle.xml")
toolVersion = 8.11 toolVersion = 8.11
} }
......
...@@ -5,7 +5,7 @@ pluginManagement { ...@@ -5,7 +5,7 @@ pluginManagement {
} }
resolutionStrategy { resolutionStrategy {
eachPlugin { eachPlugin {
if (requested.id.id == 'io.spring.javaformat') { if (requested.id.id == "io.spring.javaformat") {
useModule "io.spring.javaformat:spring-javaformat-gradle-plugin:${requested.version}" useModule "io.spring.javaformat:spring-javaformat-gradle-plugin:${requested.version}"
} }
} }
......
...@@ -4,9 +4,9 @@ buildCache { ...@@ -4,9 +4,9 @@ buildCache {
} }
remote(HttpBuildCache) { remote(HttpBuildCache) {
enabled = true enabled = true
url = 'https://ge.spring.io/cache/' url = "https://ge.spring.io/cache/"
def cacheUsername = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME') def cacheUsername = System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME")
def cachePassword = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD') def cachePassword = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
if (cacheUsername && cachePassword) { if (cacheUsername && cachePassword) {
push = true push = true
credentials { credentials {
......
...@@ -5,57 +5,57 @@ tagCiOrLocal() ...@@ -5,57 +5,57 @@ tagCiOrLocal()
addGitMetadata() addGitMetadata()
void tagOs() { void tagOs() {
gradleEnterprise.buildScan.tag System.getProperty('os.name') gradleEnterprise.buildScan.tag System.getProperty("os.name")
} }
void tagJdk() { void tagJdk() {
gradleEnterprise.buildScan.tag "JDK-${System.getProperty('java.specification.version')}" gradleEnterprise.buildScan.tag "JDK-" + System.getProperty('java.specification.version')
} }
void tagIde() { void tagIde() {
if (System.getProperty('idea.version')) { if (System.getProperty("idea.version")) {
gradleEnterprise.buildScan.tag 'IntelliJ IDEA' gradleEnterprise.buildScan.tag "IntelliJ IDEA"
} else if (System.getProperty('eclipse.buildId')) { } else if (System.getProperty("eclipse.buildId")) {
gradleEnterprise.buildScan.tag 'Eclipse' gradleEnterprise.buildScan.tag "Eclipse"
} }
} }
void tagCiOrLocal() { void tagCiOrLocal() {
gradleEnterprise.buildScan.tag(isCi() ? 'CI' : 'LOCAL') gradleEnterprise.buildScan.tag(isCi() ? "CI" : "LOCAL")
} }
void addGitMetadata() { void addGitMetadata() {
gradleEnterprise.buildScan.background { gradleEnterprise.buildScan.background {
def gitCommitId = execAndGetStdout('git', 'rev-parse', '--short=8', '--verify', 'HEAD') def gitCommitId = execAndGetStdout("git", "rev-parse", "--short=8", "--verify", "HEAD")
def gitBranchName = getBranch() def gitBranchName = getBranch()
def gitStatus = execAndGetStdout('git', 'status', '--porcelain') def gitStatus = execAndGetStdout("git", "status", "--porcelain")
if(gitCommitId) { if(gitCommitId) {
def commitIdLabel = 'Git Commit ID' def commitIdLabel = "Git Commit ID"
value commitIdLabel, gitCommitId value commitIdLabel, gitCommitId
link 'Git commit build scans', customValueSearchUrl([(commitIdLabel): gitCommitId]) link "Git commit build scans", customValueSearchUrl([(commitIdLabel): gitCommitId])
} }
if (gitBranchName) { if (gitBranchName) {
tag gitBranchName tag gitBranchName
value 'Git branch', gitBranchName value "Git branch", gitBranchName
} }
if (gitStatus) { if (gitStatus) {
tag 'dirty' tag "dirty"
value 'Git status', gitStatus value "Git status", gitStatus
} }
} }
} }
boolean isCi() { boolean isCi() {
System.getenv('CI') System.getenv("CI")
} }
String getBranch() { String getBranch() {
def branch = System.getenv('BRANCH') def branch = System.getenv("BRANCH")
if (branch) { if (branch) {
return branch return branch
} }
return execAndGetStdout('git', 'rev-parse', '--abbrev-ref', 'HEAD') return execAndGetStdout("git", "rev-parse", "--abbrev-ref", "HEAD")
} }
String execAndGetStdout(String... args) { String execAndGetStdout(String... args) {
...@@ -70,11 +70,11 @@ String execAndGetStdout(String... args) { ...@@ -70,11 +70,11 @@ String execAndGetStdout(String... args) {
String customValueSearchUrl(Map<String, String> search) { String customValueSearchUrl(Map<String, String> search) {
def query = search.collect { name, value -> def query = search.collect { name, value ->
"search.names=${encodeURL(name)}&search.values=${encodeURL(value)}" "search.names=${encodeURL(name)}&search.values=${encodeURL(value)}"
}.join('&') }.join("&")
"${gradleEnterprise.buildScan.server}/scans?${query}" "${gradleEnterprise.buildScan.server}/scans?${query}"
} }
String encodeURL(String url) { String encodeURL(String url) {
URLEncoder.encode(url, 'UTF-8') URLEncoder.encode(url, "UTF-8")
} }
...@@ -2,14 +2,14 @@ pluginManagement { ...@@ -2,14 +2,14 @@ pluginManagement {
repositories { repositories {
mavenCentral() mavenCentral()
gradlePluginPortal() gradlePluginPortal()
maven { url 'https://repo.spring.io/snapshot' } maven { url "https://repo.spring.io/snapshot" }
} }
resolutionStrategy { resolutionStrategy {
eachPlugin { eachPlugin {
if (requested.id.id == 'org.jetbrains.kotlin.jvm') { if (requested.id.id == "org.jetbrains.kotlin.jvm") {
useVersion "${kotlinVersion}" useVersion "${kotlinVersion}"
} }
if (requested.id.id == 'org.jetbrains.kotlin.plugin.spring') { if (requested.id.id == "org.jetbrains.kotlin.plugin.spring") {
useVersion "${kotlinVersion}" useVersion "${kotlinVersion}"
} }
} }
...@@ -17,7 +17,7 @@ pluginManagement { ...@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gradle.enterprise' version '3.1.1' id "com.gradle.enterprise" version "3.1.1"
} }
apply from: "${rootDir}/gradle/build-scan-user-data.gradle" apply from: "${rootDir}/gradle/build-scan-user-data.gradle"
...@@ -25,45 +25,45 @@ gradleEnterprise { ...@@ -25,45 +25,45 @@ gradleEnterprise {
buildScan { buildScan {
captureTaskInputFiles = true captureTaskInputFiles = true
obfuscation { obfuscation {
ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0'} } ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
} }
publishAlways() publishAlways()
publishIfAuthenticated() publishIfAuthenticated()
server = 'https://ge.spring.io' server = "https://ge.spring.io"
} }
} }
apply from: "${settingsDir}/gradle/build-cache-settings.gradle" apply from: "${settingsDir}/gradle/build-cache-settings.gradle"
rootProject.name='spring-boot-build' rootProject.name="spring-boot-build"
include 'spring-boot-project:spring-boot-dependencies' include "spring-boot-project:spring-boot-dependencies"
include 'spring-boot-project:spring-boot-parent' include "spring-boot-project:spring-boot-parent"
include 'spring-boot-project:spring-boot-tools:spring-boot-antlib' include "spring-boot-project:spring-boot-tools:spring-boot-antlib"
include 'spring-boot-project:spring-boot-tools:spring-boot-autoconfigure-processor' include "spring-boot-project:spring-boot-tools:spring-boot-autoconfigure-processor"
include 'spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform' include "spring-boot-project:spring-boot-tools:spring-boot-buildpack-platform"
include 'spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata' include "spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata"
include 'spring-boot-project:spring-boot-tools:spring-boot-configuration-processor' include "spring-boot-project:spring-boot-tools:spring-boot-configuration-processor"
include 'spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin' include "spring-boot-project:spring-boot-tools:spring-boot-gradle-plugin"
include 'spring-boot-project:spring-boot-tools:spring-boot-layertools' include "spring-boot-project:spring-boot-tools:spring-boot-layertools"
include 'spring-boot-project:spring-boot-tools:spring-boot-loader' include "spring-boot-project:spring-boot-tools:spring-boot-loader"
include 'spring-boot-project:spring-boot-tools:spring-boot-loader-tools' include "spring-boot-project:spring-boot-tools:spring-boot-loader-tools"
include 'spring-boot-project:spring-boot-tools:spring-boot-maven-plugin' include "spring-boot-project:spring-boot-tools:spring-boot-maven-plugin"
include 'spring-boot-project:spring-boot-tools:spring-boot-test-support' include "spring-boot-project:spring-boot-tools:spring-boot-test-support"
include 'spring-boot-project:spring-boot' include "spring-boot-project:spring-boot"
include 'spring-boot-project:spring-boot-autoconfigure' include "spring-boot-project:spring-boot-autoconfigure"
include 'spring-boot-project:spring-boot-actuator' include "spring-boot-project:spring-boot-actuator"
include 'spring-boot-project:spring-boot-actuator-autoconfigure' include "spring-boot-project:spring-boot-actuator-autoconfigure"
include 'spring-boot-project:spring-boot-cli' include "spring-boot-project:spring-boot-cli"
include 'spring-boot-project:spring-boot-devtools' include "spring-boot-project:spring-boot-devtools"
include 'spring-boot-project:spring-boot-docs' include "spring-boot-project:spring-boot-docs"
include 'spring-boot-project:spring-boot-properties-migrator' include "spring-boot-project:spring-boot-properties-migrator"
include 'spring-boot-project:spring-boot-test' include "spring-boot-project:spring-boot-test"
include 'spring-boot-project:spring-boot-test-autoconfigure' include "spring-boot-project:spring-boot-test-autoconfigure"
include 'spring-boot-tests:spring-boot-deployment-tests' include "spring-boot-tests:spring-boot-deployment-tests"
include 'spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests' include "spring-boot-tests:spring-boot-integration-tests:spring-boot-configuration-processor-tests"
include 'spring-boot-tests:spring-boot-integration-tests:spring-boot-launch-script-tests' include "spring-boot-tests:spring-boot-integration-tests:spring-boot-launch-script-tests"
include 'spring-boot-tests:spring-boot-integration-tests:spring-boot-server-tests' include "spring-boot-tests:spring-boot-integration-tests:spring-boot-server-tests"
file("${rootDir}/spring-boot-project/spring-boot-starters").eachDirMatch(~/spring-boot-starter.*/) { file("${rootDir}/spring-boot-project/spring-boot-starters").eachDirMatch(~/spring-boot-starter.*/) {
include "spring-boot-project:spring-boot-starters:${it.name}" include "spring-boot-project:spring-boot-starters:${it.name}"
......
plugins { plugins {
id 'java-library' id "java-library"
id 'org.springframework.boot.conventions' id "org.springframework.boot.conventions"
id 'org.springframework.boot.configuration-properties' id "org.springframework.boot.configuration-properties"
id 'org.springframework.boot.optional-dependencies' id "org.springframework.boot.optional-dependencies"
id 'org.springframework.boot.deployed' id "org.springframework.boot.deployed"
} }
description = 'Spring Boot Actuator' description = "Spring Boot Actuator"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
implementation project(':spring-boot-project:spring-boot') implementation project(":spring-boot-project:spring-boot")
optional platform(project(':spring-boot-project:spring-boot-dependencies')) optional platform(project(":spring-boot-project:spring-boot-dependencies"))
optional 'com.fasterxml.jackson.core:jackson-databind' optional "com.fasterxml.jackson.core:jackson-databind"
optional 'com.github.ben-manes.caffeine:caffeine' optional "com.github.ben-manes.caffeine:caffeine"
optional 'com.hazelcast:hazelcast' optional "com.hazelcast:hazelcast"
optional 'com.hazelcast:hazelcast-spring' optional "com.hazelcast:hazelcast-spring"
optional 'com.sun.mail:jakarta.mail' optional "com.sun.mail:jakarta.mail"
optional 'com.zaxxer:HikariCP' optional "com.zaxxer:HikariCP"
optional 'io.lettuce:lettuce-core' optional "io.lettuce:lettuce-core"
optional 'io.micrometer:micrometer-core' optional "io.micrometer:micrometer-core"
optional 'io.micrometer:micrometer-registry-prometheus' optional "io.micrometer:micrometer-registry-prometheus"
optional 'io.prometheus:simpleclient_pushgateway' optional "io.prometheus:simpleclient_pushgateway"
optional 'io.reactivex:rxjava-reactive-streams' optional "io.reactivex:rxjava-reactive-streams"
optional 'org.elasticsearch.client:elasticsearch-rest-client' optional "org.elasticsearch.client:elasticsearch-rest-client"
optional ('io.undertow:undertow-servlet') { optional ("io.undertow:undertow-servlet") {
exclude group: 'org.jboss.spec.javax.annotation', module: 'jboss-annotations-api_1.2_spec' exclude group: "org.jboss.spec.javax.annotation", module: "jboss-annotations-api_1.2_spec"
exclude group: 'org.jboss.spec.javax.servlet', module: 'jboss-servlet-api_4.0_spec' exclude group: "org.jboss.spec.javax.servlet", module: "jboss-servlet-api_4.0_spec"
} }
optional 'javax.cache:cache-api' optional "javax.cache:cache-api"
optional 'javax.jms:javax.jms-api' optional "javax.jms:javax.jms-api"
optional 'net.sf.ehcache:ehcache' optional "net.sf.ehcache:ehcache"
optional 'org.apache.tomcat.embed:tomcat-embed-core' optional "org.apache.tomcat.embed:tomcat-embed-core"
optional 'org.aspectj:aspectjweaver' optional "org.aspectj:aspectjweaver"
optional 'org.eclipse.jetty:jetty-server' optional "org.eclipse.jetty:jetty-server"
optional 'org.elasticsearch:elasticsearch' optional "org.elasticsearch:elasticsearch"
optional 'org.flywaydb:flyway-core' optional "org.flywaydb:flyway-core"
optional 'org.glassfish.jersey.core:jersey-server' optional "org.glassfish.jersey.core:jersey-server"
optional 'org.glassfish.jersey.containers:jersey-container-servlet-core' optional "org.glassfish.jersey.containers:jersey-container-servlet-core"
optional 'org.hibernate.validator:hibernate-validator' optional "org.hibernate.validator:hibernate-validator"
optional 'org.influxdb:influxdb-java' optional "org.influxdb:influxdb-java"
optional 'org.liquibase:liquibase-core' optional "org.liquibase:liquibase-core"
optional 'org.mongodb:mongodb-driver-async' optional "org.mongodb:mongodb-driver-async"
optional 'org.mongodb:mongodb-driver-reactivestreams' optional "org.mongodb:mongodb-driver-reactivestreams"
optional 'org.springframework:spring-jdbc' optional "org.springframework:spring-jdbc"
optional 'org.springframework:spring-messaging' optional "org.springframework:spring-messaging"
optional 'org.springframework:spring-webflux' optional "org.springframework:spring-webflux"
optional 'org.springframework:spring-web' optional "org.springframework:spring-web"
optional 'org.springframework:spring-webmvc' optional "org.springframework:spring-webmvc"
optional 'org.springframework.amqp:spring-rabbit' optional "org.springframework.amqp:spring-rabbit"
optional 'org.springframework.data:spring-data-cassandra' optional "org.springframework.data:spring-data-cassandra"
optional 'org.springframework.data:spring-data-couchbase' optional "org.springframework.data:spring-data-couchbase"
optional 'org.springframework.data:spring-data-ldap' optional "org.springframework.data:spring-data-ldap"
optional 'org.springframework.data:spring-data-mongodb' optional "org.springframework.data:spring-data-mongodb"
optional 'org.springframework.data:spring-data-neo4j' optional "org.springframework.data:spring-data-neo4j"
optional 'org.springframework.data:spring-data-redis' optional "org.springframework.data:spring-data-redis"
optional 'org.springframework.data:spring-data-rest-webmvc' optional "org.springframework.data:spring-data-rest-webmvc"
optional 'org.springframework.data:spring-data-solr' optional "org.springframework.data:spring-data-solr"
optional 'org.springframework.integration:spring-integration-core' optional "org.springframework.integration:spring-integration-core"
optional 'org.springframework.security:spring-security-core' optional "org.springframework.security:spring-security-core"
optional 'org.springframework.security:spring-security-web' optional "org.springframework.security:spring-security-web"
optional 'org.springframework.session:spring-session-core' optional "org.springframework.session:spring-session-core"
testImplementation project(':spring-boot-project:spring-boot-test') testImplementation project(":spring-boot-project:spring-boot-test")
testImplementation project(':spring-boot-project:spring-boot-tools:spring-boot-test-support') testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testImplementation project(':spring-boot-project:spring-boot-autoconfigure') testImplementation project(":spring-boot-project:spring-boot-autoconfigure")
testImplementation 'org.assertj:assertj-core' testImplementation "org.assertj:assertj-core"
testImplementation 'com.jayway.jsonpath:json-path' testImplementation "com.jayway.jsonpath:json-path"
testImplementation 'io.projectreactor:reactor-test' testImplementation "io.projectreactor:reactor-test"
testImplementation 'org.apache.logging.log4j:log4j-to-slf4j' testImplementation "org.apache.logging.log4j:log4j-to-slf4j"
testImplementation 'org.awaitility:awaitility' testImplementation "org.awaitility:awaitility"
testImplementation 'org.glassfish.jersey.media:jersey-media-json-jackson' testImplementation "org.glassfish.jersey.media:jersey-media-json-jackson"
testImplementation 'org.hamcrest:hamcrest' testImplementation "org.hamcrest:hamcrest"
testImplementation 'org.junit.jupiter:junit-jupiter' testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation 'org.mockito:mockito-core' testImplementation "org.mockito:mockito-core"
testImplementation 'org.mockito:mockito-junit-jupiter' testImplementation "org.mockito:mockito-junit-jupiter"
testImplementation 'org.skyscreamer:jsonassert' testImplementation "org.skyscreamer:jsonassert"
testImplementation 'org.springframework:spring-test' testImplementation "org.springframework:spring-test"
testRuntimeOnly 'io.projectreactor.netty:reactor-netty' testRuntimeOnly "io.projectreactor.netty:reactor-netty"
testRuntimeOnly 'javax.xml.bind:jaxb-api' testRuntimeOnly "javax.xml.bind:jaxb-api"
testRuntimeOnly 'org.apache.tomcat.embed:tomcat-embed-el' testRuntimeOnly "org.apache.tomcat.embed:tomcat-embed-el"
testRuntimeOnly 'org.glassfish.jersey.ext:jersey-spring4' testRuntimeOnly "org.glassfish.jersey.ext:jersey-spring4"
testRuntimeOnly 'org.hsqldb:hsqldb' testRuntimeOnly "org.hsqldb:hsqldb"
} }
compileJava { compileJava {
options.compilerArgs << '-parameters' options.compilerArgs << "-parameters"
} }
compileTestJava { compileTestJava {
options.compilerArgs << '-parameters' options.compilerArgs << "-parameters"
} }
\ No newline at end of file
plugins { plugins {
id 'java-library' id "java-library"
id 'org.springframework.boot.auto-configuration' id "org.springframework.boot.auto-configuration"
id 'org.springframework.boot.conventions' id "org.springframework.boot.conventions"
id 'org.springframework.boot.deployed' id "org.springframework.boot.deployed"
id 'org.springframework.boot.integration-test' id "org.springframework.boot.integration-test"
id 'org.springframework.boot.internal-dependency-management' id "org.springframework.boot.internal-dependency-management"
id 'org.springframework.boot.optional-dependencies' id "org.springframework.boot.optional-dependencies"
} }
description = 'Spring Boot Developer Tools' description = "Spring Boot Developer Tools"
configurations { configurations {
intTestDependencies intTestDependencies
} }
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
implementation project(':spring-boot-project:spring-boot') implementation project(":spring-boot-project:spring-boot")
implementation project(':spring-boot-project:spring-boot-autoconfigure') implementation project(":spring-boot-project:spring-boot-autoconfigure")
intTestDependencies project(':spring-boot-project:spring-boot-starters:spring-boot-starter-web') intTestDependencies project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web")
intTestImplementation project(':spring-boot-project:spring-boot-autoconfigure') intTestImplementation project(":spring-boot-project:spring-boot-autoconfigure")
intTestImplementation project(':spring-boot-project:spring-boot-test') intTestImplementation project(":spring-boot-project:spring-boot-test")
intTestImplementation project(':spring-boot-project:spring-boot-tools:spring-boot-test-support') intTestImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
intTestImplementation 'org.apache.httpcomponents:httpclient' intTestImplementation "org.apache.httpcomponents:httpclient"
intTestImplementation 'org.assertj:assertj-core' intTestImplementation "org.assertj:assertj-core"
intTestImplementation 'org.awaitility:awaitility' intTestImplementation "org.awaitility:awaitility"
intTestImplementation 'org.junit.jupiter:junit-jupiter' intTestImplementation "org.junit.jupiter:junit-jupiter"
intTestImplementation 'net.bytebuddy:byte-buddy' intTestImplementation "net.bytebuddy:byte-buddy"
intTestRuntimeOnly 'org.springframework:spring-web'
optional platform(project(':spring-boot-project:spring-boot-dependencies')) intTestRuntimeOnly "org.springframework:spring-web"
optional 'javax.servlet:javax.servlet-api'
optional 'org.apache.derby:derby'
optional 'org.hibernate:hibernate-core'
optional 'org.springframework:spring-jdbc'
optional 'org.springframework:spring-orm'
optional 'org.springframework:spring-web'
optional 'org.springframework.security:spring-security-config'
optional 'org.springframework.security:spring-security-web'
optional 'org.springframework.data:spring-data-redis'
optional 'org.springframework.session:spring-session-core'
testImplementation project(':spring-boot-project:spring-boot-tools:spring-boot-test-support') optional platform(project(":spring-boot-project:spring-boot-dependencies"))
testImplementation project(':spring-boot-project:spring-boot-test') optional "javax.servlet:javax.servlet-api"
testImplementation 'ch.qos.logback:logback-classic' optional "org.apache.derby:derby"
testImplementation 'com.h2database:h2' optional "org.hibernate:hibernate-core"
testImplementation 'com.zaxxer:HikariCP' optional "org.springframework:spring-jdbc"
testImplementation 'org.apache.derby:derbyclient' optional "org.springframework:spring-orm"
testImplementation 'org.apache.tomcat.embed:tomcat-embed-websocket' optional "org.springframework:spring-web"
testImplementation 'org.apache.tomcat.embed:tomcat-embed-core' optional "org.springframework.security:spring-security-config"
testImplementation 'org.apache.tomcat.embed:tomcat-embed-jasper' optional "org.springframework.security:spring-security-web"
testImplementation 'org.assertj:assertj-core' optional "org.springframework.data:spring-data-redis"
testImplementation 'org.awaitility:awaitility' optional "org.springframework.session:spring-session-core"
testImplementation 'org.eclipse.jetty.websocket:websocket-client'
testImplementation 'org.hamcrest:hamcrest-library'
testImplementation 'org.hsqldb:hsqldb'
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.postgresql:postgresql'
testImplementation 'org.springframework:spring-test'
testImplementation 'org.springframework:spring-webmvc'
testImplementation 'org.springframework:spring-websocket'
testImplementation 'org.springframework.hateoas:spring-hateoas'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.thymeleaf:thymeleaf'
testImplementation 'org.thymeleaf:thymeleaf-spring5'
testImplementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testImplementation project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")
testRuntimeOnly 'org.yaml:snakeyaml' testImplementation project(":spring-boot-project:spring-boot-test")
testImplementation "ch.qos.logback:logback-classic"
testImplementation "com.h2database:h2"
testImplementation "com.zaxxer:HikariCP"
testImplementation "org.apache.derby:derbyclient"
testImplementation "org.apache.tomcat.embed:tomcat-embed-websocket"
testImplementation "org.apache.tomcat.embed:tomcat-embed-core"
testImplementation "org.apache.tomcat.embed:tomcat-embed-jasper"
testImplementation "org.assertj:assertj-core"
testImplementation "org.awaitility:awaitility"
testImplementation "org.eclipse.jetty.websocket:websocket-client"
testImplementation "org.hamcrest:hamcrest-library"
testImplementation "org.hsqldb:hsqldb"
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.mockito:mockito-core"
testImplementation "org.postgresql:postgresql"
testImplementation "org.springframework:spring-test"
testImplementation "org.springframework:spring-webmvc"
testImplementation "org.springframework:spring-websocket"
testImplementation "org.springframework.hateoas:spring-hateoas"
testImplementation "org.springframework.security:spring-security-test"
testImplementation "org.thymeleaf:thymeleaf"
testImplementation "org.thymeleaf:thymeleaf-spring5"
testImplementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
testRuntimeOnly "org.yaml:snakeyaml"
} }
task copyIntTestDependencies(type: Copy) { task copyIntTestDependencies(type: Copy) {
......
plugins { plugins {
id 'java-platform' id "java-platform"
id 'org.springframework.boot.conventions' id "org.springframework.boot.conventions"
id 'org.springframework.boot.deployed' id "org.springframework.boot.deployed"
} }
description = 'Spring Boot Parent' description = "Spring Boot Parent"
javaPlatform { javaPlatform {
allowDependencies() allowDependencies()
...@@ -12,30 +12,31 @@ javaPlatform { ...@@ -12,30 +12,31 @@ javaPlatform {
dependencies { dependencies {
api enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")) api enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies"))
api enforcedPlatform('org.testcontainers:testcontainers-bom:1.12.4') api enforcedPlatform("org.testcontainers:testcontainers-bom:1.12.4")
constraints { constraints {
api 'com.vaadin.external.google:android-json:0.0.20131108.vaadin1' api "com.vaadin.external.google:android-json:0.0.20131108.vaadin1"
api 'commons-fileupload:commons-fileupload:1.4' api "commons-fileupload:commons-fileupload:1.4"
api 'io.mockk:mockk:1.9.3' api "io.mockk:mockk:1.9.3"
api 'jline:jline:2.11' api "jline:jline:2.11"
api 'net.sf.jopt-simple:jopt-simple:5.0.4' api "net.sf.jopt-simple:jopt-simple:5.0.4"
api 'org.apache.commons:commons-compress:1.19' api "org.apache.commons:commons-compress:1.19"
api 'org.apache.maven:maven-plugin-api:3.6.3' api "org.apache.maven:maven-plugin-api:3.6.3"
api 'org.apache.maven:maven-resolver-provider:3.6.3' api "org.apache.maven:maven-resolver-provider:3.6.3"
api 'org.apache.maven:maven-settings-builder:3.6.3' api "org.apache.maven:maven-settings-builder:3.6.3"
api 'org.apache.maven.resolver:maven-resolver-connector-basic:1.4.1' api "org.apache.maven.resolver:maven-resolver-connector-basic:1.4.1"
api 'org.apache.maven.resolver:maven-resolver-impl:1.4.1' api "org.apache.maven.resolver:maven-resolver-impl:1.4.1"
api 'org.apache.maven.resolver:maven-resolver-transport-file:1.4.1' api "org.apache.maven.resolver:maven-resolver-transport-file:1.4.1"
api 'org.apache.maven.resolver:maven-resolver-transport-http:1.4.1' api "org.apache.maven.resolver:maven-resolver-transport-http:1.4.1"
api 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0' api "org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0"
api 'org.apache.maven.plugins:maven-shade-plugin:3.2.1' api "org.apache.maven.plugins:maven-shade-plugin:3.2.1"
api 'org.apache.maven.shared:maven-common-artifact-filters:3.1.0' api "org.apache.maven.shared:maven-common-artifact-filters:3.1.0"
api 'org.apache.maven.shared:maven-invoker:3.0.1' api "org.apache.maven.shared:maven-invoker:3.0.1"
api 'org.sonatype.plexus:plexus-build-api:0.0.7' api "org.sonatype.plexus:plexus-build-api:0.0.7"
api 'org.sonatype.plexus:plexus-sec-dispatcher:1.4' api "org.sonatype.plexus:plexus-sec-dispatcher:1.4"
api 'org.sonatype.sisu:sisu-inject-plexus:2.6.0' api "org.sonatype.sisu:sisu-inject-plexus:2.6.0"
api 'org.spockframework:spock-core:1.3-groovy-2.5' api "org.spockframework:spock-core:1.3-groovy-2.5"
api 'org.spockframework:spock-spring:1.3-groovy-2.5' api "org.spockframework:spock-spring:1.3-groovy-2.5"
api 'org.testng:testng:6.14.3' api "org.testng:testng:6.14.3"
} }
} }
\ No newline at end of file
plugins { plugins {
id 'java-library' id "java-library"
id 'maven-publish' id "maven-publish"
id 'org.springframework.boot.conventions' id "org.springframework.boot.conventions"
id 'org.springframework.boot.internal-dependency-management' id "org.springframework.boot.internal-dependency-management"
} }
description = 'Spring Boot Properties Migrator' description = "Spring Boot Properties Migrator"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
implementation project(':spring-boot-project:spring-boot') implementation project(":spring-boot-project:spring-boot")
implementation project(':spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata') implementation project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata")
testImplementation project(':spring-boot-project:spring-boot-test') testImplementation project(":spring-boot-project:spring-boot-test")
testImplementation 'org.junit.jupiter:junit-jupiter' testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation 'org.assertj:assertj-core' testImplementation "org.assertj:assertj-core"
testImplementation 'org.springframework:spring-test' testImplementation "org.springframework:spring-test"
} }
\ No newline at end of file
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for JMS messaging using Apache ActiveMQ" description = "Starter for JMS messaging using Apache ActiveMQ"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-jms' api "org.springframework:spring-jms"
api ('org.apache.activemq:activemq-broker') { api ("org.apache.activemq:activemq-broker") {
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jms_1.1_spec' exclude group: "org.apache.geronimo.specs", module: "geronimo-jms_1.1_spec"
} }
api 'jakarta.jms:jakarta.jms-api' api "jakarta.jms:jakarta.jms-api"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring Boot's Actuator which provides production ready features to help you monitor and manage your application" description = "Starter for using Spring Boot's Actuator which provides production ready features to help you monitor and manage your application"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api project(':spring-boot-project:spring-boot-actuator-autoconfigure') api project(":spring-boot-project:spring-boot-actuator-autoconfigure")
api 'io.micrometer:micrometer-core' api "io.micrometer:micrometer-core"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring AMQP and Rabbit MQ" description = "Starter for using Spring AMQP and Rabbit MQ"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-messaging' api "org.springframework:spring-messaging"
api 'org.springframework.amqp:spring-rabbit' api "org.springframework.amqp:spring-rabbit"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for aspect-oriented programming with Spring AOP and AspectJ" description = "Starter for aspect-oriented programming with Spring AOP and AspectJ"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-aop' api "org.springframework:spring-aop"
api 'org.aspectj:aspectjweaver' api "org.aspectj:aspectjweaver"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for JMS messaging using Apache Artemis" description = "Starter for JMS messaging using Apache Artemis"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'jakarta.jms:jakarta.jms-api' api "jakarta.jms:jakarta.jms-api"
api 'jakarta.json:jakarta.json-api' api "jakarta.json:jakarta.json-api"
api 'org.springframework:spring-jms' api "org.springframework:spring-jms"
api ('org.apache.activemq:artemis-jms-client') { api ("org.apache.activemq:artemis-jms-client") {
exclude group: 'commons-logging', module: 'commons-logging' exclude group: "commons-logging", module: "commons-logging"
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jms_2.0_spec' exclude group: "org.apache.geronimo.specs", module: "geronimo-jms_2.0_spec"
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-json_1.0_spec' exclude group: "org.apache.geronimo.specs", module: "geronimo-json_1.0_spec"
} }
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring Batch" description = "Starter for using Spring Batch"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc")
api 'org.springframework.batch:spring-batch-core' api "org.springframework.batch:spring-batch-core"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring Framework's caching support" description = "Starter for using Spring Framework's caching support"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-context-support' api "org.springframework:spring-context-support"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Cassandra distributed database and Spring Data Cassandra Reactive" description = "Starter for using Cassandra distributed database and Spring Data Cassandra Reactive"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-tx' api "org.springframework:spring-tx"
api 'org.springframework.data:spring-data-cassandra' api "org.springframework.data:spring-data-cassandra"
api 'io.projectreactor:reactor-core' api "io.projectreactor:reactor-core"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Cassandra distributed database and Spring Data Cassandra" description = "Starter for using Cassandra distributed database and Spring Data Cassandra"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'org.springframework:spring-tx' api "org.springframework:spring-tx"
api 'org.springframework.data:spring-data-cassandra' api "org.springframework.data:spring-data-cassandra"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Couchbase document-oriented database and Spring Data Couchbase Reactive" description = "Starter for using Couchbase document-oriented database and Spring Data Couchbase Reactive"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api 'io.projectreactor:reactor-core' api "io.projectreactor:reactor-core"
api 'io.reactivex:rxjava-reactive-streams' api "io.reactivex:rxjava-reactive-streams"
api ('org.springframework.data:spring-data-couchbase') { api ("org.springframework.data:spring-data-couchbase") {
exclude group: 'com.couchbase.client', module: 'encryption' exclude group: "com.couchbase.client", module: "encryption"
} }
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Couchbase document-oriented database and Spring Data Couchbase" description = "Starter for using Couchbase document-oriented database and Spring Data Couchbase"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api ('org.springframework.data:spring-data-couchbase') { api ("org.springframework.data:spring-data-couchbase") {
exclude group: 'com.couchbase.client', module: 'encryption' exclude group: "com.couchbase.client", module: "encryption"
} }
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch" description = "Starter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter")
api ('org.springframework.data:spring-data-elasticsearch') { api ("org.springframework.data:spring-data-elasticsearch") {
exclude group: 'org.elasticsearch.client', module: 'transport' exclude group: "org.elasticsearch.client", module: "transport"
} }
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring Data JDBC" description = "Starter for using Spring Data JDBC"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc")
api 'org.springframework.data:spring-data-jdbc' api "org.springframework.data:spring-data-jdbc"
} }
plugins { plugins {
id 'org.springframework.boot.starter' id "org.springframework.boot.starter"
} }
description = "Starter for using Spring Data JPA with Hibernate" description = "Starter for using Spring Data JPA with Hibernate"
dependencies { dependencies {
api platform(project(':spring-boot-project:spring-boot-dependencies')) api platform(project(":spring-boot-project:spring-boot-dependencies"))
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-aop') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter-aop")
api project(':spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc') api project(":spring-boot-project:spring-boot-starters:spring-boot-starter-jdbc")
api 'jakarta.transaction:jakarta.transaction-api' api "jakarta.transaction:jakarta.transaction-api"
api 'jakarta.persistence:jakarta.persistence-api' api "jakarta.persistence:jakarta.persistence-api"
api ('org.hibernate:hibernate-core') { api ("org.hibernate:hibernate-core") {
exclude group: 'javax.activation', module: 'javax.activation-api' exclude group: "javax.activation", module: "javax.activation-api"
exclude group: 'javax.persistence', module: 'javax.persistence-api' exclude group: "javax.persistence", module: "javax.persistence-api"
exclude group: 'javax.xml.bind', module: 'jaxb-api' exclude group: "javax.xml.bind", module: "jaxb-api"
exclude group: 'org.jboss.spec.javax.transaction', module: 'jboss-transaction-api_1.2_spec' exclude group: "org.jboss.spec.javax.transaction", module: "jboss-transaction-api_1.2_spec"
} }
api ('org.springframework.data:spring-data-jpa') { api ("org.springframework.data:spring-data-jpa") {
exclude group: 'org.aspectj', module: 'aspectjrt' exclude group: "org.aspectj", module: "aspectjrt"
} }
api 'org.springframework:spring-aspects' api "org.springframework:spring-aspects"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment