aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-27 16:05:59 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-11-27 16:05:59 +0300
commit13c4cb93f55693f3bfa396ccad9549d8654ec3f9 (patch)
treed0af242a455f14d051251eeabb2b1dcc6d6db700 /runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
parentcc2a478ff0f1831be2333bf97712e1ffe9d764fe (diff)
downloaddokka-13c4cb93f55693f3bfa396ccad9549d8654ec3f9.tar.gz
dokka-13c4cb93f55693f3bfa396ccad9549d8654ec3f9.tar.bz2
dokka-13c4cb93f55693f3bfa396ccad9549d8654ec3f9.zip
Add language version arguments
Diffstat (limited to 'runners/maven-plugin/src/main/kotlin/DokkaMojo.kt')
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
index c0904396..09da90c6 100644
--- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -107,6 +107,12 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
@Parameter
var cacheRoot: String? = null
+ @Parameter
+ var languageVersion: String? = null
+
+ @Parameter
+ var apiVersion: String? = null
+
protected abstract fun getOutDir(): String
protected abstract fun getOutFormat(): String
@@ -133,7 +139,9 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
perPackageOptions = perPackageOptions,
externalDocumentationLinks = externalDocumentationLinks.map { it.build() },
noStdlibLink = noStdlibLink,
- cacheRoot = cacheRoot
+ cacheRoot = cacheRoot,
+ languageVersion = languageVersion,
+ apiVersion = apiVersion
)
)