aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin
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 /runners/maven-plugin
parent6d1e25756c3e8c43ce4d5721e7665f439a19e47c (diff)
downloaddokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.gz
dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.bz2
dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.zip
Implement simple MavenIntegrationTest.kt
Diffstat (limited to 'runners/maven-plugin')
-rw-r--r--runners/maven-plugin/build.gradle.kts3
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt3
2 files changed, 3 insertions, 3 deletions
diff --git a/runners/maven-plugin/build.gradle.kts b/runners/maven-plugin/build.gradle.kts
index d9fc4f6f..8e412b43 100644
--- a/runners/maven-plugin/build.gradle.kts
+++ b/runners/maven-plugin/build.gradle.kts
@@ -1,5 +1,6 @@
import org.jetbrains.configureBintrayPublication
import org.jetbrains.CrossPlatformExec
+
/**
* [mavenBin] configuration is used to download Maven Plugin Plugin
* for generating plugin-help.xml and plugin.xml files
@@ -30,6 +31,7 @@ dependencies {
val mavenBinDir = "$buildDir/maven-bin"
val mavenBuildDir = "$buildDir/maven"
val mvn = File(mavenBinDir, "apache-maven-$mavenVersion/bin/mvn")
+extra.set("MVN_BINARY_PATH", mvn.absolutePath)
tasks.named<Delete>("clean") {
delete(mavenBinDir)
@@ -48,6 +50,7 @@ val setupMaven by tasks.registering(Sync::class) {
*/
val generatePom by tasks.registering(Copy::class) {
val dokka_version: String by project
+ inputs.property("dokka_version", dokka_version)
from("$projectDir/pom.tpl.xml") {
rename("(.*).tpl.xml", "$1.xml")
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
index 8160ab87..aa92516f 100644
--- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -88,9 +88,6 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
var sourceDirectories: List<String> = emptyList()
@Parameter
- var sourceRoots: List<SourceRoot> = emptyList()
-
- @Parameter
var samples: List<String> = emptyList()
@Parameter