diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-12 13:52:31 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-12 13:52:31 +0100 |
commit | da2cf094df5e8bc0470823e7154be84dcd578cd2 (patch) | |
tree | 0ec18b806ce603a2f874b8b7c610221353c259fe /maven-plugin/src/main/kotlin/DokkaMojo.kt | |
parent | 628356d63443b11ff2221707c54a397f548d38a4 (diff) | |
download | dokka-da2cf094df5e8bc0470823e7154be84dcd578cd2.tar.gz dokka-da2cf094df5e8bc0470823e7154be84dcd578cd2.tar.bz2 dokka-da2cf094df5e8bc0470823e7154be84dcd578cd2.zip |
allow specifying JDK version to use for JDK links
Diffstat (limited to 'maven-plugin/src/main/kotlin/DokkaMojo.kt')
-rw-r--r-- | maven-plugin/src/main/kotlin/DokkaMojo.kt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/maven-plugin/src/main/kotlin/DokkaMojo.kt b/maven-plugin/src/main/kotlin/DokkaMojo.kt index da585c2f..1b2bfc53 100644 --- a/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -48,6 +48,9 @@ class DokkaMojo : AbstractMojo() { @Parameter(required = false, defaultValue = "false") var skip: Boolean = false + @Parameter(required = false, defaultValue = "6") + var jdkVersion: Int = 6 + override fun execute() { if (skip) { log.info("Dokka skip parameter is true so no dokka output will be produced") @@ -61,9 +64,10 @@ class DokkaMojo : AbstractMojo() { samplesDirs, includeDirs, moduleName, - outputDir, - outputFormat, - sourceLinks.map { SourceLinkDefinition(it.dir, it.url, it.urlSuffix) } + DocumentationOptions(outputDir, outputFormat, + sourceLinks = sourceLinks.map { SourceLinkDefinition(it.dir, it.url, it.urlSuffix) }, + jdkVersion = jdkVersion + ) ) gen.generate() |