From da2cf094df5e8bc0470823e7154be84dcd578cd2 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 12 Jan 2016 13:52:31 +0100 Subject: allow specifying JDK version to use for JDK links --- maven-plugin/src/main/kotlin/DokkaMojo.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'maven-plugin/src') 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() -- cgit