Replace deprecated Project.task()
See gh-45009 Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user