diff options
Diffstat (limited to 'maven-plugin/src/main/kotlin')
-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() |