jvmMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.jvmMain: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for the main Kotlin Source Set of jvm target. Declare jvm target to access this source set. If jvm target wasn't declared, accessing this source set will cause a runtime error during configuration time.
Sample:
kotlin {
jvm() // Target is declared, jvmMain source set is created
sourceSets {
jvmMain.dependencies {
// Add jvmMain dependencies here
}
}
}
Content copied to clipboard
Since
2.0.20