diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-16 09:56:58 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-04-16 10:52:37 +0200 |
commit | d841e2dd60e6a784ac1863ddba21949460320fc3 (patch) | |
tree | 09389942c6e6d126645574aa527272a7f168fd66 /runners/gradle-plugin/src/main/kotlin | |
parent | 5c1253503c62d2401cfec9cb5c2d89f45b74ef63 (diff) | |
download | dokka-d841e2dd60e6a784ac1863ddba21949460320fc3.tar.gz dokka-d841e2dd60e6a784ac1863ddba21949460320fc3.tar.bz2 dokka-d841e2dd60e6a784ac1863ddba21949460320fc3.zip |
Change extension behaviour
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 4 |
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() |