From e11997d45706d9ab2a0db0355b70f3b624b32113 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 27 Mar 2019 14:54:07 +0100 Subject: Fix Maven --- runners/maven-plugin/src/main/kotlin/DokkaMojo.kt | 39 +++++++++++++++-------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'runners/maven-plugin/src/main') 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 @@ -61,10 +61,6 @@ abstract class AbstractDokkaMojo : AbstractMojo() { @Parameter var samplesDirs: List = emptyList() - @Parameter - @Deprecated("Use instead") - var includeDirs: List = emptyList() - @Parameter var includes: List = emptyList() @@ -88,7 +84,7 @@ abstract class AbstractDokkaMojo : AbstractMojo() { @Parameter var skipEmptyPackages = true @Parameter - var reportNotDocumented = true + var reportUndocumented = true @Parameter var impliedPlatforms: List = 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)) -- cgit