diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-03-26 20:00:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 20:00:46 +0100 |
commit | 4ddaafb8ec1a45d2696833d1a441f7dbdbb319dd (patch) | |
tree | d1309e1f32ececdcf298137d5ecdfd2d55ba65f1 /runners/gradle-plugin/src | |
parent | 8166370d57dcc5f8f2af15648761d733200a092b (diff) | |
download | dokka-4ddaafb8ec1a45d2696833d1a441f7dbdbb319dd.tar.gz dokka-4ddaafb8ec1a45d2696833d1a441f7dbdbb319dd.tar.bz2 dokka-4ddaafb8ec1a45d2696833d1a441f7dbdbb319dd.zip |
Fix configuration for suppressing obvious functions (#1789)
* Fix suppressObviousFunctions not being present in task configuration
* Docs
Diffstat (limited to 'runners/gradle-plugin/src')
3 files changed, 8 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt index 6c1e6ab6..ead7b978 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt @@ -44,6 +44,10 @@ abstract class AbstractDokkaTask : DefaultTask() { .safeConvention(DokkaDefaults.failOnWarning) @Input + val suppressObviousFunctions: Property<Boolean> = project.objects.safeProperty<Boolean>() + .safeConvention(DokkaDefaults.suppressObviousFunctions) + + @Input val offlineMode: Property<Boolean> = project.objects.safeProperty<Boolean>() .safeConvention(DokkaDefaults.offlineMode) 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 078ef925..0d6f35da 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 @@ -42,6 +42,7 @@ abstract class DokkaTask : AbstractDokkaTask() { failOnWarning = failOnWarning.getSafe(), sourceSets = unsuppressedSourceSets.build(), pluginsConfiguration = buildPluginsConfiguration(), - pluginsClasspath = plugins.resolve().toList() + pluginsClasspath = plugins.resolve().toList(), + suppressObviousFunctions = suppressObviousFunctions.getSafe(), ) } diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTaskPartial.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTaskPartial.kt index 0f509d3b..c2789c19 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTaskPartial.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTaskPartial.kt @@ -44,7 +44,8 @@ abstract class DokkaTaskPartial : AbstractDokkaTask() { sourceSets = unsuppressedSourceSets.build(), pluginsConfiguration = buildPluginsConfiguration(), pluginsClasspath = plugins.resolve().toList(), - delayTemplateSubstitution = true + delayTemplateSubstitution = true, + suppressObviousFunctions = suppressObviousFunctions.getSafe(), ) } }
\ No newline at end of file |