aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/build.gradle.kts
blob: 2c526af78de5cb41bf299d2a4851623c01b82876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import org.jetbrains.invokeWhenEvaluated

dependencies {
    implementation(kotlin("stdlib"))
    implementation(kotlin("test-junit"))
    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.clean {
    delete(File(buildDir, "gradle-test-kit"))
}