aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt4
1 files changed, 2 insertions, 2 deletions
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<GradlePassConfigurationImpl>).toList()
passConfigurationExtension.sourceRoots.addAll(sourceRoots)
val passConfigurationList =
- (passConfigurationsContainer + passConfigurationExtension)
+ (if (passConfigurationsContainer.isEmpty()) listOf(passConfigurationExtension) else passConfigurationsContainer)
.map { defaultPassConfiguration(it) }
val configuration = GradleDokkaConfigurationImpl()