jvmMain

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
}
}
}

Since

2.0.20