From 0b3595a8e38d5f5b1d280eec4c35eea4976023f5 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Sun, 26 Nov 2017 09:25:46 +1100 Subject: Pick correct closure type in the gradle plugin Replace Closure with Closure in the gradle plugin. Fixes #241 --- runners/gradle-plugin/src/main/kotlin/main.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runners/gradle-plugin') 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 } } - fun linkMapping(closure: Closure) { + fun linkMapping(closure: Closure) { val mapping = LinkMapping() closure.delegate = mapping closure.call() @@ -148,21 +148,21 @@ open class DokkaTask : DefaultTask() { linkMappings.add(mapping) } - fun sourceRoot(closure: Closure) { + fun sourceRoot(closure: Closure) { val sourceRoot = SourceRoot() closure.delegate = sourceRoot closure.call() sourceRoots.add(sourceRoot) } - fun packageOptions(closure: Closure) { + fun packageOptions(closure: Closure) { val packageOptions = PackageOptions() closure.delegate = packageOptions closure.call() perPackageOptions.add(packageOptions) } - fun externalDocumentationLink(closure: Closure) { + fun externalDocumentationLink(closure: Closure) { val builder = DokkaConfiguration.ExternalDocumentationLink.Builder() closure.delegate = builder closure.call() -- cgit