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.projectDirectory.dir("src/additionalSources/kotlin"))
}To add generated Kotlin sources use generatedKotlin.
See also
Types
Constants for KotlinSourceSet.
Properties
Represents a combined set of Kotlin source files that are included in kotlin and SourceDirectorySetsSourceDirectorySet.
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 generated Kotlin source files that are included in this KotlinSourceSet.
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 LanguageSettingsBuilder source set with the provided configuration.
Configures the LanguageSettingsBuilder in the source set with the provided configuration.