diff options
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( |