diff options
author | Colin Hebert <hebert.colin@gmail.com> | 2017-11-26 09:25:46 +1100 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-12-11 18:45:24 +0300 |
commit | 0b3595a8e38d5f5b1d280eec4c35eea4976023f5 (patch) | |
tree | 8d6d042d59d92c1027053b7d5db5a8849ca0bc97 /runners/gradle-plugin | |
parent | 880fb1095e1b6881ff4e891553de0cc9b92e3167 (diff) | |
download | dokka-0b3595a8e38d5f5b1d280eec4c35eea4976023f5.tar.gz dokka-0b3595a8e38d5f5b1d280eec4c35eea4976023f5.tar.bz2 dokka-0b3595a8e38d5f5b1d280eec4c35eea4976023f5.zip |
Pick correct closure type in the gradle plugin
Replace Closure<Any?> with Closure<Unit> in the gradle plugin. Fixes #241
Diffstat (limited to 'runners/gradle-plugin')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/main.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt index bdecc3f6..505b2baf 100644 --- a/runners/gradle-plugin/src/main/kotlin/main.kt +++ b/runners/gradle-plugin/src/main/kotlin/main.kt @@ -133,7 +133,7 @@ open class DokkaTask : DefaultTask() { kotlinTasksConfigurator = { closure.call() as? List<Any?> } } - fun linkMapping(closure: Closure<Any?>) { + fun linkMapping(closure: Closure<Unit>) { val mapping = LinkMapping() closure.delegate = mapping closure.call() @@ -148,21 +148,21 @@ open class DokkaTask : DefaultTask() { linkMappings.add(mapping) } - fun sourceRoot(closure: Closure<Any?>) { + fun sourceRoot(closure: Closure<Unit>) { val sourceRoot = SourceRoot() closure.delegate = sourceRoot closure.call() sourceRoots.add(sourceRoot) } - fun packageOptions(closure: Closure<Any?>) { + fun packageOptions(closure: Closure<Unit>) { val packageOptions = PackageOptions() closure.delegate = packageOptions closure.call() perPackageOptions.add(packageOptions) } - fun externalDocumentationLink(closure: Closure<Any?>) { + fun externalDocumentationLink(closure: Closure<Unit>) { val builder = DokkaConfiguration.ExternalDocumentationLink.Builder() closure.delegate = builder closure.call() |