SourceSetModel

@Serializable
data class SourceSetModel(val name: String, val kind: SourceSetKind, val production: Boolean, val srcDirs: List<String>, val platforms: List<String> = emptyList(), val targetNames: List<String> = emptyList(), val dependsOnSourceSets: List<String> = emptyList(), val dependencyConfigurations: List<String> = emptyList(), val compileClasspath: List<String> = emptyList(), val jvmTarget: String? = null)

Represents a source set within a Gradle project.

Constructors

Link copied to clipboard
constructor(name: String, kind: SourceSetKind, production: Boolean, srcDirs: List<String>, platforms: List<String> = emptyList(), targetNames: List<String> = emptyList(), dependsOnSourceSets: List<String> = emptyList(), dependencyConfigurations: List<String> = emptyList(), compileClasspath: List<String> = emptyList(), jvmTarget: String? = null)

Properties

Link copied to clipboard

Optional resolved compilation classpath used by v2 compiler-backed analysis.

Link copied to clipboard

Gradle configurations that own dependencies declared for this source set.

Link copied to clipboard

Source sets in this source set's Kotlin compilation/dependsOn visibility closure.

Link copied to clipboard

Optional Kotlin/JVM target metadata used to configure compiler analysis.

Link copied to clipboard

The technological category of the source set (JVM, Android, KMP).

Link copied to clipboard

Name of the source set (e.g., main, test, commonMain, debug).

Link copied to clipboard
Link copied to clipboard

Whether this source set contains production/main code (true) or test/generated code (false).

Link copied to clipboard

List of source directories belonging to this source set.

Link copied to clipboard

Concrete Kotlin/Native target identities associated with this source set (for example, IOS_ARM64).