From d841e2dd60e6a784ac1863ddba21949460320fc3 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Tue, 16 Apr 2019 09:56:58 +0200 Subject: Change extension behaviour --- .../src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runners/gradle-plugin/src/main/kotlin') diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt index d9094e46..6c93188b 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt @@ -195,13 +195,13 @@ open class DokkaTask : DefaultTask() { val passConfigurationExtension: GradlePassConfigurationImpl = extensions.findByName( CONFIGURATION_EXTENSION_NAME) as GradlePassConfigurationImpl - val passConfigurationsContainer= + val passConfigurationsContainer = (extensions.getByName(MULTIPLATFORM_EXTENSION_NAME) as Iterable).toList() passConfigurationExtension.sourceRoots.addAll(sourceRoots) val passConfigurationList = - (passConfigurationsContainer + passConfigurationExtension) + (if (passConfigurationsContainer.isEmpty()) listOf(passConfigurationExtension) else passConfigurationsContainer) .map { defaultPassConfiguration(it) } val configuration = GradleDokkaConfigurationImpl() -- cgit