aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/build.gradle.kts
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-02 14:18:51 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-06 15:34:57 +0200
commita573641a70a626983c1d63965e377ea0be274f41 (patch)
treefa242cb03627437c6a40a38900d894c97a6436c0 /integration-tests/gradle/build.gradle.kts
parentb594564969ec4d93d59e4850a63f0fbf8f68cf7a (diff)
downloaddokka-a573641a70a626983c1d63965e377ea0be274f41.tar.gz
dokka-a573641a70a626983c1d63965e377ea0be274f41.tar.bz2
dokka-a573641a70a626983c1d63965e377ea0be274f41.zip
Implement AndroidGradleIntegrationTest
Diffstat (limited to 'integration-tests/gradle/build.gradle.kts')
-rw-r--r--integration-tests/gradle/build.gradle.kts19
1 files changed, 13 insertions, 6 deletions
diff --git a/integration-tests/gradle/build.gradle.kts b/integration-tests/gradle/build.gradle.kts
index fb5e5739..2c526af7 100644
--- a/integration-tests/gradle/build.gradle.kts
+++ b/integration-tests/gradle/build.gradle.kts
@@ -1,15 +1,22 @@
+import org.jetbrains.invokeWhenEvaluated
+
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("test-junit"))
implementation(gradleTestKit())
}
-tasks {
- test {
- inputs.dir(file("projects"))
+val integrationTest by tasks.integrationTest
+integrationTest.inputs.dir(file("projects"))
- rootProject.allprojects
- .mapNotNull { project -> project.tasks.findByName("publishToMavenLocal") }
- .forEach { publishTask -> this.dependsOn(publishTask) }
+rootProject.allprojects.forEach { otherProject ->
+ otherProject.invokeWhenEvaluated { evaluatedProject ->
+ evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask ->
+ integrationTest.dependsOn(publishingTask)
+ }
}
}
+
+tasks.clean {
+ delete(File(buildDir, "gradle-test-kit"))
+}