Replace deprecated Project.task()

See gh-45009

Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
Johnny Lim
2025-04-05 23:46:08 +09:00
committed by Phillip Webb
parent ce64f368e6
commit 08c67cc353
41 changed files with 92 additions and 92 deletions

View File

@@ -25,7 +25,7 @@ dependencies {
implementation("org.springframework:spring-core")
}
task syncIntegrationTestSources(type: Sync) {
tasks.register("syncIntegrationTestSources", Sync) {
destinationDir = file(layout.buildDirectory.dir("it"))
from file("src/it")
filter(springRepositoryTransformers.ant())
@@ -39,7 +39,7 @@ processResources {
inputs.property "version", version
}
task integrationTest {
tasks.register("integrationTest") {
dependsOn syncIntegrationTestSources, jar
def resultsDir = file(layout.buildDirectory.dir("test-results/integrationTest"))
inputs.dir(file("src/it")).withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName("source")