Merge branch '3.4.x'

Closes gh-45193
This commit is contained in:
Phillip Webb
2025-04-14 16:18:50 -07:00
41 changed files with 92 additions and 92 deletions

View File

@@ -40,7 +40,7 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
task syncTestRepository(type: Sync) {
tasks.register("syncTestRepository", Sync) {
destinationDir = file(layout.buildDirectory.dir("test-repository"))
from configurations.testRepository
rename {
@@ -48,14 +48,14 @@ task syncTestRepository(type: Sync) {
}
}
task syncAntSources(type: Sync) {
tasks.register("syncAntSources", Sync) {
destinationDir = file(layout.buildDirectory.dir("ant"))
from project.layout.projectDirectory
include "*.xml"
filter(springRepositoryTransformers.ant())
}
task antRun(type: JavaExec) {
tasks.register("antRun", JavaExec) {
workingDir = layout.buildDirectory.dir("ant")
dependsOn syncTestRepository, syncAntSources, configurations.antDependencies
classpath = configurations.antDependencies;
@@ -67,7 +67,7 @@ task antRun(type: JavaExec) {
]
}
task test(type: Test) {
tasks.register("test", Test) {
dependsOn antRun
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath