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/gradle-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/gradle-plugin/src/main')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/main.kt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt index 60311fff..bfa8feea 100644 --- a/runners/gradle-plugin/src/main/kotlin/main.kt +++ b/runners/gradle-plugin/src/main/kotlin/main.kt @@ -85,6 +85,8 @@ open class DokkaTask : DefaultTask() { @Input var perPackageOptions: MutableList<PackageOptions> = arrayListOf() @Input var impliedPlatforms: MutableList<String> = arrayListOf() + @Input var externalDocumentationLinks = mutableListOf<DokkaConfiguration.ExternalDocumentationLink>() + protected open val sdkProvider: SdkProvider? = null @@ -117,6 +119,13 @@ open class DokkaTask : DefaultTask() { perPackageOptions.add(packageOptions) } + fun externalDocumentationLink(closure: Closure<Any?>) { + val builder = DokkaConfiguration.ExternalDocumentationLink.Builder() + closure.delegate = builder + closure.call() + externalDocumentationLinks.add(builder.build()) + } + fun tryResolveFatJar(project: Project): File { return try { val dependency = project.buildscript.dependencies.create(dokkaFatJar) @@ -185,7 +194,8 @@ open class DokkaTask : DefaultTask() { true, linkMappings, impliedPlatforms, - perPackageOptions) + perPackageOptions, + externalDocumentationLinks) bootstrapProxy.configure( |