Class SourceSet
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalysisPlatform
(AnalysisPlatform analysisPlatform) Sets the platform used for setting up analysis.apiVersion
(int apiVersion) Sets the Kotlin API version used for setting up analysis and samples.apiVersion
(String apiVersion) Sets the Kotlin API version used for setting up analysis and samples.args()
Returns the formatted arguments.Retrieves the classpath for analysis and interactive samples.Sets classpath for analysis and interactive samples.Sets classpath for analysis and interactive samples.Sets classpath for analysis and interactive samples.classpath
(Collection<File> files) Sets classpath for analysis and interactive samples.classpathPaths
(Collection<Path> files) Sets classpath for analysis and interactive samples.classpathStrings
(Collection<String> files) Sets classpath for analysis and interactive samples.Retrieves the names of dependent source sets.dependentSourceSets
(String moduleName, String sourceSetName) Sets the names of dependent source sets.dependentSourceSets
(Map<String, String> dependentSourceSets) Sets the names of dependent source sets.displayName
(String displayName) Sets the display name of the source set, used both internally and externally.Retrieves the visibilities to be documented.documentedVisibilities
(DocumentedVisibility... visibilities) Sets visibilities to be documented.Retrieves the external documentation links.externalDocumentationLinks
(String url, String packageListUrl) Sets the external documentation links.externalDocumentationLinks
(Map<String, String> externalDocumentationLinks) Sets the external documentation links.includes()
Retrieves the Markdown files that contain module and package documentation.Sets the Markdown files that contain module and package documentation.Sets the Markdown files that contain module and package documentation.Sets the Markdown files that contain module and package documentation.includes
(Collection<File> files) Sets the Markdown files that contain module and package documentation.includesPaths
(Collection<Path> files) Sets the Markdown files that contain module and package documentation.includesStrings
(Collection<String> files) Sets the Markdown files that contain module and package documentation.Retrieves the version of the JDK to use for linking to JDK Javadocs.jdkVersion
(int jdkVersion) Sets the version of JDK to use for linking to JDK Javadocs.jdkVersion
(String jdkVersion) Sets the version of JDK to use for linking to JDK Javadocs.languageVersion
(int languageVersion) Sets the language version used for setting up analysis and samples.languageVersion
(String languageVersion) Sets the language version used for setting up analysis and samples.Sets whether to generate links to JDK Javadocs.noSkipEmptyPackages
(boolean noSkipEmptyPackages) Sets whether to create pages for empty packages.noStdlibLink
(Boolean noStdlibLink) Sets whether to generate links to Standard library.Retrieves the package source set configuration.perPackageOptions
(String... perPackageOptions) Set the package source set configuration.perPackageOptions
(Collection<String> perPackageOptions) Set the package source set configuration.reportUndocumented
(Boolean reportUndocumented) Sets whether to report undocumented declarations.samples()
Retrieves the directories or files that contain sample functions.Set the directories or files that contain sample functions.Set the directories or files that contain sample functions.Set the directories or files that contain sample functions.samples
(Collection<File> samples) Set the directories or files that contain sample functions.samplesPaths
(Collection<Path> samples) Set the directories or files that contain sample functions.samplesStrings
(Collection<String> samples) Set the directories or files that contain sample functions.skipDeprecated
(boolean skipDeprecated) Sets whether to skip deprecated declarations.sourceSetName
(String sourceSetName) Sets the name of the source set.src()
Retrieves the source code roots to be analyzed and documented.Sets the source code roots to be analyzed and documented.Sets the source code roots to be analyzed and documented.Sets the source code roots to be analyzed and documented.src
(Collection<File> src) Sets the source code roots to be analyzed and documented.Sets the mapping between a source directory and a Web service for browsing the code.Sets the mapping between a source directory and a Web service for browsing the code.Sets the mapping between a source directory and a Web service for browsing the code.srcLinks()
Retrieves the mapping between a source directory and a Web service for browsing the code.srcPaths
(Collection<Path> src) Sets the source code roots to be analyzed and documented.srcStrings
(Collection<String> src) Sets the source code roots to be analyzed and documented.Retrieves the paths to files to be suppressed.suppressedFiles
(File... suppressedFiles) Sets the paths to files to be suppressed.suppressedFiles
(String... suppressedFiles) Sets the paths to files to be suppressed.suppressedFiles
(Path... suppressedFiles) Sets the paths to files to be suppressed.suppressedFiles
(Collection<File> suppressedFiles) Sets the paths to files to be suppressed.suppressedFilesPaths
(Collection<Path> suppressedFiles) Sets the paths to files to be suppressed.suppressedFilesStrings
(Collection<String> suppressedFiles) Sets the paths to files to be suppressed.
-
Constructor Details
-
SourceSet
public SourceSet()
-
-
Method Details
-
analysisPlatform
Sets the platform used for setting up analysis. Default isJVM
Platform to be used for setting up code analysis and
@sample
environment.- Parameters:
analysisPlatform
- the analysis platform- Returns:
- this operation instance
-
apiVersion
Sets the Kotlin API version used for setting up analysis and samples.- Parameters:
apiVersion
- the api version- Returns:
- this operation instance
-
apiVersion
Sets the Kotlin API version used for setting up analysis and samples.- Parameters:
apiVersion
- the api version- Returns:
- this operation instance
-
args
Returns the formatted arguments.- Returns:
- the arguments
-
classpath
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- one or more file- Returns:
- this operation instance
- See Also:
-
classpath
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- one or more file- Returns:
- this operation instance
- See Also:
-
classpath
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- one or more file- Returns:
- this operation instance
- See Also:
-
classpath
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
classpath
Retrieves the classpath for analysis and interactive samples.- Returns:
- the classpath
-
classpathPaths
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
classpathStrings
Sets classpath for analysis and interactive samples.This is useful if some types that come from dependencies are not resolved/picked up automatically.
This option accepts both
.jar
and.klib
files.- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
dependentSourceSets
Sets the names of dependent source sets.- Parameters:
moduleName
- the module namesourceSetName
- the source set name- Returns:
- this operation instance
-
dependentSourceSets
Retrieves the names of dependent source sets.- Returns:
- the names
-
dependentSourceSets
Sets the names of dependent source sets.- Parameters:
dependentSourceSets
- the map of dependent source set names- Returns:
- this operation instance
- See Also:
-
displayName
Sets the display name of the source set, used both internally and externally.The name is used both externally (for example, the source set name is visible to documentation readers) and internally (for example, for logging messages of
reportUndocumented
).The platform name can be used if you don't have a better alternative.
- Parameters:
displayName
- the display name- Returns:
- this operation instance
-
documentedVisibilities
Sets visibilities to be documented.This can be used if you want to document protected/internal/private declarations, as well as if you want to exclude public declarations and only document internal API.
This can be configured on per-package basis.
- Parameters:
visibilities
- one or more visibilities- Returns:
- this operation instance
-
documentedVisibilities
Retrieves the visibilities to be documented.- Returns:
- the documented visibilities
-
externalDocumentationLinks
Sets the external documentation links.A set of parameters for external documentation links that is applied only for this source set.
- Parameters:
url
- the external documentation URLpackageListUrl
- the external documentation package list URL- Returns:
- this operation instance
-
externalDocumentationLinks
Retrieves the external documentation links.- Returns:
- the documentation links.
-
externalDocumentationLinks
Sets the external documentation links.A set of parameters for external documentation links that is applied only for this source set.
- Parameters:
externalDocumentationLinks
- the map of external documentation links- Returns:
- this operation instance
- See Also:
-
includes
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- one or more files- Returns:
- this operation instance
- See Also:
-
includes
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- one or more files- Returns:
- this operation instance
- See Also:
-
includes
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- one or more files- Returns:
- this operation instance
- See Also:
-
includes
Retrieves the Markdown files that contain module and package documentation.- Returns:
- the markdown files
-
includes
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
includesPaths
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
includesStrings
Sets the Markdown files that contain module and package documentation.The Markdown files that contain module and package documentation.
The contents of the specified files are parsed and embedded into documentation as module and package descriptions.
- Parameters:
files
- the collection of files- Returns:
- this operation instance
- See Also:
-
jdkVersion
Sets the version of JDK to use for linking to JDK Javadocs.The JDK version to use when generating external documentation links for Java types.
For example, if you use
UUID
in some public declaration signature, and this option is set to 8, Dokka generates an external documentation link to JDK 8 Javadocs for it.- Parameters:
jdkVersion
- the JDK version- Returns:
- this operation instance
-
jdkVersion
Retrieves the version of the JDK to use for linking to JDK Javadocs.- Returns:
- the JDK version.
-
jdkVersion
Sets the version of JDK to use for linking to JDK Javadocs.The JDK version to use when generating external documentation links for Java types.
For example, if you use
UUID
in some public declaration signature, and this option is set to 8, Dokka generates an external documentation link to JDK 8 Javadocs for it.- Parameters:
jdkVersion
- the JDK version- Returns:
- this operation instance
-
languageVersion
Sets the language version used for setting up analysis and samples.- Parameters:
languageVersion
- the language version- Returns:
- this operation instance
-
languageVersion
Sets the language version used for setting up analysis and samples.- Parameters:
languageVersion
- the language version- Returns:
- this operation instance
-
noJdkLink
Sets whether to generate links to JDK Javadocs.Whether to generate external documentation links to JDK's Javadocs.
The version of JDK Javadocs is determined by the
jdkVersion
option.Note: Links are generated when noJdkLink is set to false.
- Parameters:
noJdkLink
-true
orfalse
- Returns:
- this operation instance
-
noSkipEmptyPackages
Sets whether to create pages for empty packages.Whether to skip packages that contain no visible declarations after various filters have been applied.
- Parameters:
noSkipEmptyPackages
-true
orfalse
- Returns:
- this operation instance
-
noStdlibLink
Sets whether to generate links to Standard library.Whether to generate external documentation links that lead to the API reference documentation of Kotlin's standard library.
Note: Links are generated when noStdLibLink is set to
false
.- Parameters:
noStdlibLink
-true
orfalse
- Returns:
- this operation instance
-
perPackageOptions
Set the package source set configuration.A set of parameters specific to matched packages within this source set.
Using format:
- matchingRegexp
- -deprecated
- -privateApi
- +warnUndocumented
- +suppress
- +visibility:PUBLIC
- ...
- Parameters:
perPackageOptions
- the per package options- Returns:
- this operation instance
-
perPackageOptions
Retrieves the package source set configuration.- Returns:
- the package source set configuration
-
perPackageOptions
Set the package source set configuration.A set of parameters specific to matched packages within this source set.
Using format:
- matchingRegexp
- -deprecated
- -privateApi
- +warnUndocumented
- +suppress
- +visibility:PUBLIC
- ...
- Parameters:
perPackageOptions
- the per package options- Returns:
- this operation instance
-
reportUndocumented
Sets whether to report undocumented declarations.Whether to emit warnings about visible undocumented declarations, that is declarations without KDocs after they have been filtered by documentedVisibilities and other filters.
This setting works well with
DokkaOperation.failOnWarning(java.lang.Boolean)
.This can be configured on per-package basis.
- Parameters:
reportUndocumented
-true
orfalse
- Returns:
- this operation instance
-
samples
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- the samples- Returns:
- this operation instance
- See Also:
-
samples
Retrieves the directories or files that contain sample functions.- Returns:
- the directories or files
-
samples
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- nne or more samples- Returns:
- this operation instance
- See Also:
-
samples
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- nne or more samples- Returns:
- this operation instance
- See Also:
-
samples
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- nne or more samples- Returns:
- this operation instance
- See Also:
-
samplesPaths
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- the samples- Returns:
- this operation instance
- See Also:
-
samplesStrings
Set the directories or files that contain sample functions.The directories or files that contain sample functions which are referenced via the
@sample
KDoc tag.- Parameters:
samples
- the samples- Returns:
- this operation instance
- See Also:
-
skipDeprecated
Sets whether to skip deprecated declarations.Whether to document declarations annotated with
@Deprecated
.This can be configured on per-package basis.
- Parameters:
skipDeprecated
-true
orfalse
- Returns:
- this operation instance
-
sourceSetName
Sets the name of the source set. Default ismain
.- Parameters:
sourceSetName
- the source set name.- Returns:
- this operation instance
-
src
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- the source code roots- Returns:
- this operation instance
- See Also:
-
src
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- pne ore moe source code roots- Returns:
- this operation instance
- See Also:
-
src
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- pne ore moe source code roots- Returns:
- this operation instance
- See Also:
-
src
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- pne ore moe source code roots- Returns:
- this operation instance
- See Also:
-
src
Retrieves the source code roots to be analyzed and documented.- Returns:
- the source code roots
-
srcLink
Sets the mapping between a source directory and a Web service for browsing the code.- Parameters:
srcPath
- the source pathremotePath
- the remote pathlineSuffix
- the line suffix- Returns:
- this operation instance
-
srcLink
Sets the mapping between a source directory and a Web service for browsing the code.- Parameters:
srcPath
- the source pathremotePath
- the remote pathlineSuffix
- the line suffix- Returns:
- this operation instance
-
srcLink
Sets the mapping between a source directory and a Web service for browsing the code.- Parameters:
srcPath
- the source pathremotePath
- the remote pathlineSuffix
- the line suffix- Returns:
- this operation instance
-
srcLinks
Retrieves the mapping between a source directory and a Web service for browsing the code.- Returns:
- the source links
-
srcPaths
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- the source code roots- Returns:
- this operation instance
- See Also:
-
srcStrings
Sets the source code roots to be analyzed and documented.The source code roots to be analyzed and documented. Acceptable inputs are directories and individual
.kt
/.java
files.- Parameters:
src
- the source code roots- Returns:
- this operation instance
- See Also:
-
suppressedFiles
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- the suppressed files- Returns:
- this operation instance
- See Also:
-
suppressedFiles
Retrieves the paths to files to be suppressed.- Returns:
- the paths
-
suppressedFiles
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- one or moe suppressed files- Returns:
- this operation instance
- See Also:
-
suppressedFiles
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- one or moe suppressed files- Returns:
- this operation instance
- See Also:
-
suppressedFiles
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- one or moe suppressed files- Returns:
- this operation instance
- See Also:
-
suppressedFilesPaths
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- the suppressed files- Returns:
- this operation instance
- See Also:
-
suppressedFilesStrings
Sets the paths to files to be suppressed.The files to be suppressed when generating documentation.
- Parameters:
suppressedFiles
- the suppressed files- Returns:
- this operation instance
- See Also:
-