DokkaSourceSetSpec

Source set level configuration.

Can be configured in the following way with Gradle Kotlin DSL:

// build.gradle.kts

dokkatoo {
dokkatooSourceSets {
// configure individual source set by name
named("customSourceSet") {
suppress.set(true)
}

// configure all source sets at once
configureEach {
reportUndocumented.set(true)
}
}
}

Constructors

Link copied to clipboard
constructor(name: String, objects: ObjectFactory)

Properties

Link copied to clipboard

Platform to be used for setting up code analysis and samples.

Link copied to clipboard
@get:Input
abstract val apiVersion: Property<String?>

Kotlin API version used for setting up analysis and @sample environment.

Link copied to clipboard

Classpath for analysis and interactive samples.

Link copied to clipboard

Specifies source sets that current source set depends on.

Link copied to clipboard
@get:Input
abstract val displayName: Property<String>

Display name used to refer to the source set.

Link copied to clipboard

Set of visibility modifiers that should be documented.

Link copied to clipboard

Whether to generate external documentation links for Android SDK API reference when declarations from it are used.

Link copied to clipboard

Whether to generate external documentation links to JDK's Javadocs when declarations from it are used.

Link copied to clipboard

Whether to generate external documentation links that lead to API reference documentation for Kotlin's standard library when declarations from it are used.

Link copied to clipboard

Allows linking to Dokka/Javadoc documentation of the project's dependencies.

Link copied to clipboard
Link copied to clipboard
@get:Input
abstract val jdkVersion: Property<Int>

JDK version to use when generating external documentation links for Java types.

Link copied to clipboard
@get:Input
abstract val languageVersion: Property<String?>

Kotlin language version used for setting up analysis and @sample environment.

Link copied to clipboard

Allows to customize documentation generation options on a per-package basis.

Link copied to clipboard

Whether to emit warnings about visible undocumented declarations, that is declarations without KDocs after they have been filtered by documentedVisibilities.

Link copied to clipboard

List of directories or files that contain sample functions which are referenced via @sample KDoc tag.

Link copied to clipboard

Whether to document declarations annotated with Deprecated.

Link copied to clipboard

Whether to skip packages that contain no visible declarations after various filters have been applied.

Link copied to clipboard

Specifies the location of the project source code on the Web. If provided, Dokka generates "source" links for each declaration. See DokkaSourceLinkSpec for more details.

Link copied to clipboard

Source code roots to be analyzed and documented. Accepts directories and individual .kt / .java files.

Link copied to clipboard

The identifier for this source set, across all Gradle subprojects.

Link copied to clipboard

An arbitrary string used to group source sets that originate from different Gradle subprojects. This is primarily used by Kotlin Multiplatform projects, which can have multiple source sets per subproject.

Link copied to clipboard
@get:Input
abstract val suppress: Property<Boolean>

Whether this source set should be skipped when generating documentation.

Link copied to clipboard

Directories or individual files that should be suppressed, meaning declarations from them will be not documented.

Link copied to clipboard

Whether to document/analyze generated files.

Functions

Link copied to clipboard
open fun documentedVisibilities(vararg visibilities: VisibilityModifier)

Sets documentedVisibilities (overrides any previously set values).

Link copied to clipboard
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard

Action for configuring package options, appending to perPackageOptions.

Link copied to clipboard

Configure and add a new source link to sourceLinks.