aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-04-16 09:56:58 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-04-16 10:52:37 +0200
commitd841e2dd60e6a784ac1863ddba21949460320fc3 (patch)
tree09389942c6e6d126645574aa527272a7f168fd66
parent5c1253503c62d2401cfec9cb5c2d89f45b74ef63 (diff)
downloaddokka-d841e2dd60e6a784ac1863ddba21949460320fc3.tar.gz
dokka-d841e2dd60e6a784ac1863ddba21949460320fc3.tar.bz2
dokka-d841e2dd60e6a784ac1863ddba21949460320fc3.zip
Change extension behaviour
-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()