[Gradle] Add dsl marker to KotlinSourceSet

We also need users to distinguish KotlinSourceSet DSL from other levels
of DSL, specifically extension one.

^KT-64722 In Progress
This commit is contained in:
Yahor Berdnikau
2024-01-04 23:14:51 +01:00
committed by Space Team
parent e92017f64e
commit eb663117c7
7 changed files with 32 additions and 18 deletions
+5 -3
View File
@@ -431,13 +431,15 @@ kotlin {
kotlin.srcDir("${jsDir}/test")
}
val commonMainSourceSet = commonMain.get()
val nativeWasmMain by creating {
dependsOn(commonMain.get())
dependsOn(commonMainSourceSet)
kotlin.srcDir("native-wasm/src")
}
val commonTestSourceSet = commonTest.get()
val nativeWasmTest by creating {
dependsOn(commonTest.get())
dependsOn(commonTestSourceSet)
kotlin.srcDir("native-wasm/test")
}
@@ -525,7 +527,7 @@ kotlin {
if (kotlinBuildProperties.isInIdeaSync) {
val nativeKotlinTestCommon by creating {
dependsOn(commonMain.get())
dependsOn(commonMainSourceSet)
val prepareKotlinTestCommonNativeSources by tasks.registering(Sync::class) {
from("../kotlin.test/common/src/main/kotlin")
from("../kotlin.test/annotations-common/src/main/kotlin")