Gradle Dokka Source Set Builder
Source set level configuration.
Can be configured in the following way with Gradle Kotlin DSL:
import org.jetbrains.dokka.gradle.DokkaTask
tasks.dokkaHtml {
dokkaSourceSets {
// configure individual source set by name
named("customSourceSet") {
suppress.set(true)
}
// configure all source sets at once
configureEach {
reportUndocumented.set(true)
}
}
}Constructors
Properties
Kotlin API version used for setting up analysis and @sample environment.
Specifies source sets that current source set depends on.
Display name used to refer to the source set.
Set of visibility modifiers that should be documented.
Allows linking to Dokka/Javadoc documentation of the project's dependencies.
Deprecated. Use documentedVisibilities instead.
List of Markdown files that contain module and package documentation.
JDK version to use when generating external documentation links for Java types.
Kotlin language version used for setting up analysis and @sample environment.
Whether to generate external documentation links for Android SDK API reference when declarations from it are used.
Whether to generate external documentation links that lead to API reference documentation for Kotlin's standard library when declarations from it are used.
Allows to customize documentation generation options on a per-package basis.
Whether to emit warnings about visible undocumented declarations, that is declarations without KDocs after they have been filtered by documentedVisibilities.
Whether to document declarations annotated with Deprecated.
Whether to skip packages that contain no visible declarations after various filters have been applied.
Specifies the location of the project source code on the Web. If provided, Dokka generates "source" links for each declaration. See GradleSourceLinkBuilder for more details.
Source code roots to be analyzed and documented. Accepts directories and individual .kt / .java files.
Directories or individual files that should be suppressed, meaning declarations from them will be not documented.
Whether to document/analyze generated files.
Functions
Convenient override to append source sets to dependentSourceSets
Convenient override to append source sets to GradleDokkaSourceSetBuilder.dependentSourceSets
Closure for configuring external documentation links, appending to externalDocumentationLinks.
Action for configuring external documentation links, appending to externalDocumentationLinks.
Convenient override to append external documentation links to externalDocumentationLinks.
Extension allowing configuration of Dokka source sets via Kotlin Gradle plugin source sets.
Closure for configuring package options, appending to perPackageOptions.
Action for configuring package options, appending to perPackageOptions.
Closure for configuring source links, appending to sourceLinks.
Action for configuring source links, appending to sourceLinks.
Convenient override to append source roots to sourceRoots