diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-02 14:18:51 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-06 15:34:57 +0200 |
commit | a573641a70a626983c1d63965e377ea0be274f41 (patch) | |
tree | fa242cb03627437c6a40a38900d894c97a6436c0 /integration-tests/gradle/build.gradle.kts | |
parent | b594564969ec4d93d59e4850a63f0fbf8f68cf7a (diff) | |
download | dokka-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.kts | 19 |
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")) +} |