aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/maven/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/maven/build.gradle.kts')
-rw-r--r--integration-tests/maven/build.gradle.kts7
1 files changed, 5 insertions, 2 deletions
diff --git a/integration-tests/maven/build.gradle.kts b/integration-tests/maven/build.gradle.kts
index b0187b13..1c747bbc 100644
--- a/integration-tests/maven/build.gradle.kts
+++ b/integration-tests/maven/build.gradle.kts
@@ -1,3 +1,4 @@
+import org.jetbrains.SetupMaven
import org.jetbrains.dependsOnMavenLocalPublication
evaluationDependsOn(":runners:maven-plugin")
@@ -9,9 +10,11 @@ dependencies {
tasks.integrationTest {
dependsOnMavenLocalPublication()
- dependsOn(":runners:maven-plugin:setupMaven")
+
+ 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", project(":runners:maven-plugin").extra["MVN_BINARY_PATH"].toString())
+ environment("MVN_BINARY_PATH", setupMavenTask.mvn.absolutePath)
}