aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/maven/build.gradle.kts
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-08 10:47:05 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-08 18:59:57 +0200
commitcaf48e76f3bff5e9907cd094cf0719f623e528d5 (patch)
tree554b313645a83749afba1e77af35b930bbf4448f /integration-tests/maven/build.gradle.kts
parent6d1e25756c3e8c43ce4d5721e7665f439a19e47c (diff)
downloaddokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.gz
dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.bz2
dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.zip
Implement simple MavenIntegrationTest.kt
Diffstat (limited to 'integration-tests/maven/build.gradle.kts')
-rw-r--r--integration-tests/maven/build.gradle.kts17
1 files changed, 17 insertions, 0 deletions
diff --git a/integration-tests/maven/build.gradle.kts b/integration-tests/maven/build.gradle.kts
new file mode 100644
index 00000000..b0187b13
--- /dev/null
+++ b/integration-tests/maven/build.gradle.kts
@@ -0,0 +1,17 @@
+import org.jetbrains.dependsOnMavenLocalPublication
+
+evaluationDependsOn(":runners:maven-plugin")
+
+dependencies {
+ implementation(kotlin("stdlib"))
+ implementation(kotlin("test-junit"))
+}
+
+tasks.integrationTest {
+ dependsOnMavenLocalPublication()
+ dependsOn(":runners:maven-plugin:setupMaven")
+
+ val dokka_version: String by project
+ environment("DOKKA_VERSION", dokka_version)
+ environment("MVN_BINARY_PATH", project(":runners:maven-plugin").extra["MVN_BINARY_PATH"].toString())
+}