aboutsummaryrefslogtreecommitdiff
path: root/maven-plugin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-06-30 16:36:30 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-06-30 16:36:30 +0200
commitd1fc5f1610e646718afc6d9dfc6c5a3650350ea4 (patch)
tree74740a7aa67c543bfd1141bf7a07573e599f5ef3 /maven-plugin
parent95731338b8fa6560e0d4c5243dce4315f7967d2f (diff)
downloaddokka-d1fc5f1610e646718afc6d9dfc6c5a3650350ea4.tar.gz
dokka-d1fc5f1610e646718afc6d9dfc6c5a3650350ea4.tar.bz2
dokka-d1fc5f1610e646718afc6d9dfc6c5a3650350ea4.zip
deprecate <includeDirs> in Dokka Maven plugin, support <includes> instead. Resolves #73
Diffstat (limited to 'maven-plugin')
-rw-r--r--maven-plugin/src/main/kotlin/DokkaMojo.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/maven-plugin/src/main/kotlin/DokkaMojo.kt b/maven-plugin/src/main/kotlin/DokkaMojo.kt
index e3736602..899d2dde 100644
--- a/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -33,8 +33,12 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
var samplesDirs: List<String> = emptyList()
@Parameter
+ @Deprecated("Use <includes> instead")
var includeDirs: List<String> = emptyList()
+ @Parameter
+ var includes: List<String> = emptyList()
+
@Parameter(required = true, defaultValue = "\${project.compileClasspathElements}")
var classpath: List<String> = emptyList()
@@ -64,7 +68,7 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
classpath,
sourceDirectories,
samplesDirs,
- includeDirs,
+ includeDirs + includes,
moduleName,
DocumentationOptions(getOutDir(), getOutFormat(),
sourceLinks = sourceLinks.map { SourceLinkDefinition(it.dir, it.url, it.urlSuffix) },