aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--runners/gradle-plugin/src/main/kotlin/main.kt3
2 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0c90b994..e48b2583 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,9 @@ dokka {
// When set to default, caches stored in $USER_HOME/.cache/dokka
cacheRoot = 'default'
+ // Use to include or exclude non public members.
+ includeNonPublic = false
+
// Do not output deprecated members. Applies globally, can be overridden by packageOptions
skipDeprecated = false
diff --git a/runners/gradle-plugin/src/main/kotlin/main.kt b/runners/gradle-plugin/src/main/kotlin/main.kt
index dcb664f2..37feccc9 100644
--- a/runners/gradle-plugin/src/main/kotlin/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/main.kt
@@ -100,6 +100,7 @@ open class DokkaTask : DefaultTask() {
@Input
var dokkaFatJar: Any = "org.jetbrains.dokka:dokka-fatjar:$version"
+ @Input var includeNonPublic = false
@Input var skipDeprecated = false
@Input var skipEmptyPackages = true
@Input var reportNotDocumented = true
@@ -266,7 +267,7 @@ open class DokkaTask : DefaultTask() {
includes.filterNotNull().map { project.file(it).absolutePath },
outputDirectory,
outputFormat,
- false,
+ includeNonPublic,
false,
reportNotDocumented,
skipEmptyPackages,