Skip to content

Commit

Permalink
Merge branch '2.3.x' into 2.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Feb 2, 2021
2 parents 230b4ab + 67479b6 commit 788a42d
Show file tree
Hide file tree
Showing 115 changed files with 9 additions and 219 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -60,6 +60,9 @@
* Checkstyle}, {@link TestFailuresPlugin Test Failures}, and {@link TestRetryPlugin Test
* Retry} plugins are applied
* <li>{@link Test} tasks are configured to use JUnit Platform and use a max heap of 1024M
* <li>A {@code testRuntimeOnly} dependency upon
* {@code org.junit.platform:junit-platform-launcher} is added to projects with the
* {@link JavaPlugin} applied
* <li>{@link JavaCompile}, {@link Javadoc}, and {@link FormatTask} tasks are configured
* to use UTF-8 encoding
* <li>{@link JavaCompile} tasks are configured to use {@code -parameters} and, when
Expand Down Expand Up @@ -146,6 +149,8 @@ private void configureTestConventions(Project project) {
test.useJUnitPlatform();
test.setMaxHeapSize("1024M");
});
project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> project.getDependencies()
.add(JavaPlugin.TEST_RUNTIME_ONLY_CONFIGURATION_NAME, "org.junit.platform:junit-platform-launcher"));
project.getPlugins().apply(TestRetryPlugin.class);
project.getTasks().withType(Test.class,
(test) -> project.getPlugins().withType(TestRetryPlugin.class, (testRetryPlugin) -> {
Expand Down
Expand Up @@ -143,7 +143,6 @@ dependencies {
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.yaml:snakeyaml")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.springframework.security:spring-security-oauth2-jose")
testRuntimeOnly("org.springframework.security:spring-security-oauth2-resource-server")
testRuntimeOnly("org.springframework.security:spring-security-saml2-service-provider")
Expand Down
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot-actuator/build.gradle
Expand Up @@ -89,6 +89,5 @@ dependencies {
testRuntimeOnly("javax.xml.bind:jaxb-api")
testRuntimeOnly("org.apache.tomcat.embed:tomcat-embed-el")
testRuntimeOnly("org.glassfish.jersey.ext:jersey-spring5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.hsqldb:hsqldb")
}
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot-autoconfigure/build.gradle
Expand Up @@ -186,5 +186,4 @@ dependencies {
testImplementation("org.yaml:snakeyaml")

testRuntimeOnly("org.jetbrains.kotlin:kotlin-reflect")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
2 changes: 0 additions & 2 deletions spring-boot-project/spring-boot-cli/build.gradle
Expand Up @@ -66,8 +66,6 @@ dependencies {
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.springframework:spring-test")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-amqp", configuration: "mavenRepository"))
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-aop", configuration: "mavenRepository"))
Expand Down
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot-devtools/build.gradle
Expand Up @@ -70,7 +70,6 @@ dependencies {
testImplementation("org.thymeleaf:thymeleaf-spring5")
testImplementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.yaml:snakeyaml")
}

Expand Down
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot-docs/build.gradle
Expand Up @@ -103,7 +103,6 @@ dependencies {

testRuntimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
testRuntimeOnly("com.h2database:h2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.springframework:spring-jdbc")

testSlices(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "testSliceMetadata"))
Expand Down
Expand Up @@ -14,6 +14,4 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-test")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -85,8 +85,6 @@ dependencies {
testImplementation("org.testcontainers:neo4j")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.thymeleaf:thymeleaf")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

configurations {
Expand Down
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot-test/build.gradle
Expand Up @@ -49,7 +49,6 @@ dependencies {
testImplementation("org.springframework:spring-webmvc")
testImplementation("org.testng:testng")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
}

Expand Up @@ -24,8 +24,6 @@ dependencies {

implementation(project(":spring-boot-project:spring-boot-tools:spring-boot-loader-tools"))
implementation("org.springframework:spring-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task copyIntegrationTestSources(type: Copy) {
Expand Down
Expand Up @@ -13,6 +13,4 @@ dependencies {
testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-core")
testImplementation("org.junit.jupiter:junit-jupiter")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -13,7 +13,7 @@ dependencies {
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")
Expand All @@ -23,6 +23,4 @@ dependencies {
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.skyscreamer:jsonassert")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -14,6 +14,4 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core")
testImplementation("org.springframework:spring-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -26,6 +26,4 @@ dependencies {
testImplementation("org.mockito:mockito-core")
testImplementation("org.projectlombok:lombok")
testImplementation("org.springframework:spring-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -43,8 +43,6 @@ dependencies {
testImplementation("org.mockito:mockito-core")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:testcontainers")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

gradlePlugin {
Expand Down
Expand Up @@ -14,6 +14,4 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -31,8 +31,6 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core")
testImplementation("org.zeroturnaround:zt-zip:1.13")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

sourceSets {
Expand Down
Expand Up @@ -18,7 +18,6 @@ dependencies {

testRuntimeOnly("ch.qos.logback:logback-classic")
testRuntimeOnly("org.bouncycastle:bcprov-jdk16:1.46")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.slf4j:jcl-over-slf4j")
testRuntimeOnly("org.springframework:spring-webmvc")
}
}
Expand Up @@ -42,8 +42,6 @@ dependencies {
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-junit-jupiter")
testImplementation("org.springframework:spring-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task syncSpringBootDependenciesBom(type: Sync) {
Expand Down
Expand Up @@ -34,5 +34,4 @@ dependencies {
testImplementation("org.springframework:spring-context")

testRuntimeOnly("org.hibernate.validator:hibernate-validator")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
1 change: 0 additions & 1 deletion spring-boot-project/spring-boot/build.gradle
Expand Up @@ -100,7 +100,6 @@ dependencies {
testImplementation("org.springframework.data:spring-data-r2dbc")
testImplementation("org.xerial:sqlite-jdbc")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.testcontainers:jdbc") {
exclude group: "javax.annotation", module: "javax.annotation-api"
exclude group: "javax.xml.bind", module: "jaxb-api"
Expand Down
2 changes: 0 additions & 2 deletions spring-boot-tests/spring-boot-deployment-tests/build.gradle
Expand Up @@ -27,8 +27,6 @@ dependencies {
intTestImplementation("org.springframework:spring-web")

providedRuntime(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-tomcat"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

intTest {
Expand Down
Expand Up @@ -14,6 +14,4 @@ dependencies {

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-configuration-metadata"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -20,8 +20,6 @@ dependencies {
intTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
intTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
intTestImplementation("org.testcontainers:testcontainers")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task syncMavenRepository(type: Sync) {
Expand Down
Expand Up @@ -20,8 +20,6 @@ dependencies {
intTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
intTestImplementation("org.testcontainers:junit-jupiter")
intTestImplementation("org.testcontainers:testcontainers")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task syncMavenRepository(type: Sync) {
Expand Down
Expand Up @@ -34,7 +34,6 @@ dependencies {
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-undertow", configuration: "mavenRepository"))

testRuntimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-logging"))
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task prepareMavenBinaries(type: org.springframework.boot.build.mavenplugin.PrepareMavenBinaries) {
Expand Down
Expand Up @@ -9,6 +9,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-activemq"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -16,5 +16,4 @@ dependencies {
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.apache.httpcomponents:httpclient")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -17,6 +17,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -11,6 +11,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -12,6 +12,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -15,7 +15,5 @@ dependencies {
runtimeOnly("com.h2database:h2")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.apache.httpcomponents:httpclient")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -7,6 +7,4 @@ description = "Spring Boot AMQP smoke test"

dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-amqp"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -7,6 +7,4 @@ description = "Spring Boot animated banner smoke test"

dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -37,8 +37,6 @@ dependencies {
testImplementation("org.assertj:assertj-core")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.springframework:spring-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

task syncTestRepository(type: Sync) {
Expand Down
Expand Up @@ -9,6 +9,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-aop"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -14,6 +14,4 @@ dependencies {
testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
testImplementation("org.springframework:spring-websocket")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -7,10 +7,8 @@ description = "Spring Boot Batch smoke test"

dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-batch"))

runtimeOnly("org.hsqldb:hsqldb")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -39,8 +39,6 @@ dependencies {

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

if (project.hasProperty("cache")) {
caches[project.getProperty("cache")].each { runtimeOnly it }
}
Expand Down
Expand Up @@ -9,6 +9,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-couchbase"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -9,6 +9,4 @@ dependencies {
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-data-elasticsearch"))

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -12,6 +12,4 @@ dependencies {
runtimeOnly("com.h2database:h2")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -13,6 +13,4 @@ dependencies {
runtimeOnly("com.h2database:h2")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -11,6 +11,4 @@ dependencies {
runtimeOnly("com.unboundid:unboundid-ldapsdk")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Expand Up @@ -11,6 +11,4 @@ dependencies {
runtimeOnly("de.flapdoodle.embed:de.flapdoodle.embed.mongo")

testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

0 comments on commit 788a42d

Please sign in to comment.