diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-11 16:31:04 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-05-11 19:54:45 +0300 |
commit | 0e8733ead6d5c4c6db7e4fe8a1f34b7598823290 (patch) | |
tree | c3229a24b1dcab6b0a66dfe65283c041936719b1 /runners/maven-plugin/src/main | |
parent | a86c859eba6154524f3b42461aad6b45f26e3650 (diff) | |
download | dokka-0e8733ead6d5c4c6db7e4fe8a1f34b7598823290.tar.gz dokka-0e8733ead6d5c4c6db7e4fe8a1f34b7598823290.tar.bz2 dokka-0e8733ead6d5c4c6db7e4fe8a1f34b7598823290.zip |
Add external documentation links argument to gradle, maven, ant
Diffstat (limited to 'runners/maven-plugin/src/main')
-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() } ) ) |