Skip to content

Commit 788a42d

Browse files
committed
Merge branch '2.3.x' into 2.4.x
See gh-25076
2 parents 230b4ab + 67479b6 commit 788a42d

File tree

115 files changed

+9
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+9
-219
lines changed

buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -60,6 +60,9 @@
6060
* Checkstyle}, {@link TestFailuresPlugin Test Failures}, and {@link TestRetryPlugin Test
6161
* Retry} plugins are applied
6262
* <li>{@link Test} tasks are configured to use JUnit Platform and use a max heap of 1024M
63+
* <li>A {@code testRuntimeOnly} dependency upon
64+
* {@code org.junit.platform:junit-platform-launcher} is added to projects with the
65+
* {@link JavaPlugin} applied
6366
* <li>{@link JavaCompile}, {@link Javadoc}, and {@link FormatTask} tasks are configured
6467
* to use UTF-8 encoding
6568
* <li>{@link JavaCompile} tasks are configured to use {@code -parameters} and, when
@@ -146,6 +149,8 @@ private void configureTestConventions(Project project) {
146149
test.useJUnitPlatform();
147150
test.setMaxHeapSize("1024M");
148151
});
152+
project.getPlugins().withType(JavaPlugin.class, (javaPlugin) -> project.getDependencies()
153+
.add(JavaPlugin.TEST_RUNTIME_ONLY_CONFIGURATION_NAME, "org.junit.platform:junit-platform-launcher"));
149154
project.getPlugins().apply(TestRetryPlugin.class);
150155
project.getTasks().withType(Test.class,
151156
(test) -> project.getPlugins().withType(TestRetryPlugin.class, (testRetryPlugin) -> {

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ dependencies {
143143
testImplementation("org.springframework.security:spring-security-test")
144144
testImplementation("org.yaml:snakeyaml")
145145

146-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
147146
testRuntimeOnly("org.springframework.security:spring-security-oauth2-jose")
148147
testRuntimeOnly("org.springframework.security:spring-security-oauth2-resource-server")
149148
testRuntimeOnly("org.springframework.security:spring-security-saml2-service-provider")

spring-boot-project/spring-boot-actuator/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,5 @@ dependencies {
8989
testRuntimeOnly("javax.xml.bind:jaxb-api")
9090
testRuntimeOnly("org.apache.tomcat.embed:tomcat-embed-el")
9191
testRuntimeOnly("org.glassfish.jersey.ext:jersey-spring5")
92-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
9392
testRuntimeOnly("org.hsqldb:hsqldb")
9493
}

spring-boot-project/spring-boot-autoconfigure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,4 @@ dependencies {
186186
testImplementation("org.yaml:snakeyaml")
187187

188188
testRuntimeOnly("org.jetbrains.kotlin:kotlin-reflect")
189-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
190189
}

spring-boot-project/spring-boot-cli/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ dependencies {
6666
testImplementation("org.mockito:mockito-junit-jupiter")
6767
testImplementation("org.springframework:spring-test")
6868

69-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
70-
7169
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator", configuration: "mavenRepository"))
7270
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-amqp", configuration: "mavenRepository"))
7371
testRepository(project(path: ":spring-boot-project:spring-boot-starters:spring-boot-starter-aop", configuration: "mavenRepository"))

spring-boot-project/spring-boot-devtools/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ dependencies {
7070
testImplementation("org.thymeleaf:thymeleaf-spring5")
7171
testImplementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
7272

73-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
7473
testRuntimeOnly("org.yaml:snakeyaml")
7574
}
7675

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ dependencies {
103103

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

109108
testSlices(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "testSliceMetadata"))

spring-boot-project/spring-boot-properties-migrator/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ dependencies {
1414
testImplementation("org.junit.jupiter:junit-jupiter")
1515
testImplementation("org.assertj:assertj-core")
1616
testImplementation("org.springframework:spring-test")
17-
18-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
1917
}

spring-boot-project/spring-boot-test-autoconfigure/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ dependencies {
8585
testImplementation("org.testcontainers:neo4j")
8686
testImplementation("org.testcontainers:testcontainers")
8787
testImplementation("org.thymeleaf:thymeleaf")
88-
89-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
9088
}
9189

9290
configurations {

spring-boot-project/spring-boot-test/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ dependencies {
4949
testImplementation("org.springframework:spring-webmvc")
5050
testImplementation("org.testng:testng")
5151

52-
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
5352
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
5453
}
5554

0 commit comments

Comments
 (0)