KotlinSourceSet
Represents a logical group of Kotlin files, including sources, resources and additional metadata describing how this group participates in the compilation of this project.
For example, here's a common way to access all available within Kotlin source sets:
kotlin.sourceSets.configureEach {
// Here you can configure all Kotlin source sets.
// For example, to add an additional source directory.
kotlin.srcDir(project.layout.buildDirectory.dir("generatedSources"))
}
See also
Types
Constants for KotlinSourceSet.
Properties
Contains a set of custom file extensions used to identify source files for this KotlinSourceSet.
Returns a set of source sets that have a dependsOn relationship with this source set.
Represents a set of Kotlin source files that are included in this KotlinSourceSet.
Provides the DSL to configure a subset of Kotlin compilation language settings for this KotlinSourceSet.
Represents a set of resource files that are included in this KotlinSourceSet.
Functions
Adds additional custom source file extensions for the KotlinSourceSet so that they are included as compilation inputs.
Adds a Kotlin-specific relation to the other source set.
Configures the SourceDirectorySet containing Kotlin source files with the provided configuration.
Configures the LanguageSettingsBuilder source set with the provided configuration.
Configures the LanguageSettingsBuilder in the source set with the provided configuration.