diff options
Diffstat (limited to 'runners/maven-plugin/src/main/kotlin/DokkaMojo.kt')
-rw-r--r-- | runners/maven-plugin/src/main/kotlin/DokkaMojo.kt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt index dbae2362..cef0f2d8 100644 --- a/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt +++ b/runners/maven-plugin/src/main/kotlin/DokkaMojo.kt @@ -11,6 +11,7 @@ import org.codehaus.plexus.archiver.Archiver import org.codehaus.plexus.archiver.jar.JarArchiver import org.jetbrains.dokka.* import java.io.File +import java.net.URL class SourceLinkMapItem { @Parameter(name = "dir", required = true) @@ -23,6 +24,14 @@ class SourceLinkMapItem { var urlSuffix: String? = null } +class ExternalDocumentationLinkBuilder : DokkaConfiguration.ExternalDocumentationLink.Builder() { + + @Parameter(name = "url", required = true) + override var url: URL? = null + @Parameter(name = "packageListUrl", required = true) + override var packageListUrl: URL? = null +} + abstract class AbstractDokkaMojo : AbstractMojo() { class SourceRoot : DokkaConfiguration.SourceRoot { @Parameter(required = true) @@ -87,6 +96,9 @@ abstract class AbstractDokkaMojo : AbstractMojo() { @Parameter var perPackageOptions: List<PackageOptions> = emptyList() + @Parameter + var externalDocumentationLinks: List<ExternalDocumentationLinkBuilder> = emptyList() + protected abstract fun getOutDir(): String protected abstract fun getOutFormat(): String @@ -110,7 +122,8 @@ abstract class AbstractDokkaMojo : AbstractMojo() { skipEmptyPackages = skipEmptyPackages, reportUndocumented = reportNotDocumented, impliedPlatforms = impliedPlatforms, - perPackageOptions = perPackageOptions + perPackageOptions = perPackageOptions, + externalDocumentationLinks = externalDocumentationLinks.map { it.build() } ) ) |