aboutsummaryrefslogtreecommitdiff
path: root/runners/maven-plugin/src/main/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-03-27 14:54:07 +0100
committerKamil Doległo <kamilok1965@interia.pl>2019-03-27 15:26:06 +0100
commite11997d45706d9ab2a0db0355b70f3b624b32113 (patch)
tree3c304adb6f747c9eddf0559087fa8f3af9b8ece4 /runners/maven-plugin/src/main/kotlin
parent93bef428ae2e1f4952a22adfd4a2aa679ddd7605 (diff)
downloaddokka-e11997d45706d9ab2a0db0355b70f3b624b32113.tar.gz
dokka-e11997d45706d9ab2a0db0355b70f3b624b32113.tar.bz2
dokka-e11997d45706d9ab2a0db0355b70f3b624b32113.zip
Fix Maven
Diffstat (limited to 'runners/maven-plugin/src/main/kotlin')
-rw-r--r--runners/maven-plugin/src/main/kotlin/DokkaMojo.kt39
1 files changed, 26 insertions, 13 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
index ed8a659f..83ee17d4 100644
--- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
+++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt
@@ -62,10 +62,6 @@ 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}")
@@ -88,7 +84,7 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
@Parameter
var skipEmptyPackages = true
@Parameter
- var reportNotDocumented = true
+ var reportUndocumented = true
@Parameter
var impliedPlatforms: List<String> = emptyList()
@@ -130,18 +126,36 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
}
val passConfiguration = PassConfigurationImpl(
+ classpath = classpath,
+ sourceRoots = sourceDirectories.map { SourceRootImpl(it) } + sourceRoots.map { SourceRootImpl(path = it.path) },
+ samples = samplesDirs,
+ includes = includes,
+ collectInheritedExtensionsFromLibraries = false, // TODO: Should we implement this?
sourceLinks = sourceLinks.map { SourceLinkDefinitionImpl(it.dir, it.url, it.urlSuffix) },
jdkVersion = jdkVersion,
skipDeprecated = skipDeprecated,
skipEmptyPackages = skipEmptyPackages,
- reportUndocumented = reportNotDocumented,
- perPackageOptions = perPackageOptions,
- externalDocumentationLinks = externalDocumentationLinks.map { it.build() },
+ reportUndocumented = reportUndocumented,
+ perPackageOptions = perPackageOptions.map {
+ PackageOptionsImpl(
+ prefix = it.prefix,
+ includeNonPublic = it.includeNonPublic,
+ reportUndocumented = it.reportUndocumented,
+ skipDeprecated = it.skipDeprecated,
+ suppress = it.suppress
+ )},
+ externalDocumentationLinks = externalDocumentationLinks.map { it.build() as ExternalDocumentationLinkImpl },
noStdlibLink = noStdlibLink,
noJdkLink = noJdkLink,
languageVersion = languageVersion,
- apiVersion = apiVersion
-
+ apiVersion = apiVersion,
+ moduleName = moduleName,
+ suppressedFiles = emptyList(), // TODO: Should we implement this?
+ sinceKotlin = "1.0", // TODO: Should we implement this?
+ analysisPlatform = Platform.DEFAULT, // TODO: Should we implement this?
+ targets = emptyList(), // TODO: Should we implement this?
+ includeNonPublic = false, // TODO: Should we implement this?
+ includeRootPackage = false // TODO: Should we implement this?
)
val configuration = DokkaConfigurationImpl(
@@ -149,9 +163,8 @@ abstract class AbstractDokkaMojo : AbstractMojo() {
format = getOutFormat(),
impliedPlatforms = impliedPlatforms,
cacheRoot = cacheRoot,
- passesConfigurations = listOf(
- passConfiguration
- )
+ passesConfigurations = listOf(passConfiguration),
+ generateIndexPages = false // TODO: Should we implement this?
)
val gen = DokkaGenerator(configuration, MavenDokkaLogger(log))