diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-28 16:20:32 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-28 16:20:32 +0100 |
commit | 732ffcc09816ceb5eb60377adfb07d43fa160554 (patch) | |
tree | b56838f5176f7d786f91f56a4c0c78ee9ccae0fa /runners/gradle-plugin/src | |
parent | d59f77a81fcbc94a074e7b481af299765342a7a2 (diff) | |
download | dokka-732ffcc09816ceb5eb60377adfb07d43fa160554.tar.gz dokka-732ffcc09816ceb5eb60377adfb07d43fa160554.tar.bz2 dokka-732ffcc09816ceb5eb60377adfb07d43fa160554.zip |
Provide an error message when no pass config is present
Fixes https://github.com/Kotlin/dokka/issues/511
Diffstat (limited to 'runners/gradle-plugin/src')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 6 |
1 files changed, 5 insertions, 1 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 16f6c83e..97deb100 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 @@ -8,7 +8,6 @@ import org.gradle.api.internal.plugins.DslObject import org.gradle.api.plugins.JavaBasePlugin import org.gradle.api.tasks.* import org.jetbrains.dokka.DokkaBootstrap -import org.jetbrains.dokka.DokkaConfiguration import org.jetbrains.dokka.DokkaConfiguration.ExternalDocumentationLink.Builder import org.jetbrains.dokka.DokkaConfiguration.SourceRoot import org.jetbrains.dokka.Platform @@ -166,6 +165,11 @@ open class DokkaTask : DefaultTask() { configuration.impliedPlatforms = impliedPlatforms configuration.passesConfigurations = passConfigurationList + if(passConfigurationList.isEmpty() || passConfigurationList == listOf(globalConfig)) { + println("No pass configurations for generation detected!") + return + } + bootstrapProxy.configure( BiConsumer { level, message -> when (level) { |