Is there a reason why `jvmMain` source set access ...
# multiplatform
k
Is there a reason why
jvmMain
source set access is not provided by Kotlin DSL (unsure how this works…)? For example, following:
Copy code
kotlin {
  android()
  jvm()

  sourceSets {
    val commonMain by getting {
      // ...
    }
    
    val androidMain by getting {
      // ...
    }
    
    val jvmMain by getting {
      // ...
    }
  }
}
Can be replaced with this, except for
jvmMain
:
Copy code
kotlin {
  android()
  jvm()

  sourceSets {
    commonMain {
      // ...
    }

    androidMain {
      // ...
    }

    // `jvmMain` extension is not provided
    val jvmMain by getting {
      // ...
    }
  }
}
m
Woaw didn’t know that, but for me
androidMain
is also not recognised, anyways interested hearing more about this 🙂