From 14b9352b9b7a4084f72209ba686170e313f7863b Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Tue, 7 Jul 2020 13:12:05 +0200 Subject: Lazily configure integration test tasks --- integration-tests/gradle/build.gradle.kts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'integration-tests/gradle') diff --git a/integration-tests/gradle/build.gradle.kts b/integration-tests/gradle/build.gradle.kts index 2c526af7..28e20cf9 100644 --- a/integration-tests/gradle/build.gradle.kts +++ b/integration-tests/gradle/build.gradle.kts @@ -6,13 +6,13 @@ dependencies { implementation(gradleTestKit()) } -val integrationTest by tasks.integrationTest -integrationTest.inputs.dir(file("projects")) - -rootProject.allprojects.forEach { otherProject -> - otherProject.invokeWhenEvaluated { evaluatedProject -> - evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask -> - integrationTest.dependsOn(publishingTask) +tasks.integrationTest { + inputs.dir(file("projects")) + rootProject.allprojects.forEach { otherProject -> + otherProject.invokeWhenEvaluated { evaluatedProject -> + evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask -> + this.dependsOn(publishingTask) + } } } } -- cgit