Kelvin Chung
07/03/2025, 1:31 AMplugins {
kotlin("multiplatform")
}
kotlin {
jvm()
}
tasks.register("doSomething") {
dependsOn(tasks.jvmTest)
}
That last part doesn't compile, probably because there is no accessor for jvmTest
even though by all rights it should exist. Of course, changing it to tasks.named("jvmTest")
works, but what would cause the accessors to not be useable? (Compare this to, say, commonMain
, which is useable)ephemient
07/03/2025, 1:59 AMdependsOn("jvmTest")
ephemient
07/03/2025, 2:01 AMkotlin { jvm() }
ephemient
07/03/2025, 2:03 AMKelvin Chung
07/03/2025, 2:30 AMcommon
and jvm
source set, but I'm not sure it's generically applicable and/or involves hardcoding things that I should get from computing it.