aboutsummaryrefslogtreecommitdiff
path: root/integration-tests
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-03-16 02:15:49 +0100
committerGitHub <noreply@github.com>2023-03-16 02:15:49 +0100
commit12e2a3c6b8bf1533148ddf29c77e73f5045754a6 (patch)
treef6072f01aa8e43da84fa65d79d87d720ff7220c7 /integration-tests
parent34c0f73afa9c950b0eaf7fc3fbffb8dd600ba35a (diff)
downloaddokka-12e2a3c6b8bf1533148ddf29c77e73f5045754a6.tar.gz
dokka-12e2a3c6b8bf1533148ddf29c77e73f5045754a6.tar.bz2
dokka-12e2a3c6b8bf1533148ddf29c77e73f5045754a6.zip
Refactor Maven Runner build config (#2911)
Diffstat (limited to 'integration-tests')
-rw-r--r--integration-tests/maven/build.gradle.kts13
1 files changed, 7 insertions, 6 deletions
diff --git a/integration-tests/maven/build.gradle.kts b/integration-tests/maven/build.gradle.kts
index 4b8b6011..a2e7c440 100644
--- a/integration-tests/maven/build.gradle.kts
+++ b/integration-tests/maven/build.gradle.kts
@@ -1,12 +1,10 @@
-import org.jetbrains.SetupMaven
import org.jetbrains.dependsOnMavenLocalPublication
plugins {
id("org.jetbrains.conventions.dokka-integration-test")
+ id("org.jetbrains.conventions.maven-cli-setup")
}
-evaluationDependsOn(":runners:maven-plugin")
-
dependencies {
implementation(project(":integration-tests"))
implementation(kotlin("stdlib"))
@@ -16,10 +14,13 @@ dependencies {
tasks.integrationTest {
dependsOnMavenLocalPublication()
- val setupMavenTask = project(":runners:maven-plugin").tasks.withType<SetupMaven>().single()
- dependsOn(setupMavenTask)
+ dependsOn(tasks.installMavenBinary)
+ val mvn = setupMavenProperties.mvn
+ inputs.file(mvn)
val dokka_version: String by project
environment("DOKKA_VERSION", dokka_version)
- environment("MVN_BINARY_PATH", setupMavenTask.mvn.absolutePath)
+ doFirst("workaround for https://github.com/gradle/gradle/issues/24267") {
+ environment("MVN_BINARY_PATH", mvn.get().asFile.invariantSeparatorsPath)
+ }
}