linuxMain

Static accessor for shared kotlin Source Set between all declared Linux targets. Declare at least one of the targets mentioned above to access this source set. If no targets were declared, accessing this source set will cause a runtime error during configuration time.

Sample:

kotlin {
linuxX64()
linuxArm64()

sourceSets {
linuxMain.dependencies {
// Add linuxMain dependencies here
}
}
}

Since

1.9.20