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

evaluationDependsOn(":runners:maven-plugin")

dependencies {
    implementation(kotlin("stdlib"))
    implementation(kotlin("test-junit"))
}

tasks.integrationTest {
    dependsOnMavenLocalPublication()

    val setupMavenTask = project(":runners:maven-plugin").tasks.withType<SetupMaven>().single()
    dependsOn(setupMavenTask)

    val dokka_version: String by project
    environment("DOKKA_VERSION", dokka_version)
    environment("MVN_BINARY_PATH", setupMavenTask.mvn.absolutePath)
}