blob: 28e20cf95c4cf9762f16ee015a3c85860b4e1c18 (
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())
}
tasks.integrationTest {
inputs.dir(file("projects"))
rootProject.allprojects.forEach { otherProject ->
otherProject.invokeWhenEvaluated { evaluatedProject ->
evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask ->
this.dependsOn(publishingTask)
}
}
}
}
tasks.clean {
delete(File(buildDir, "gradle-test-kit"))
}
|