[Gradle] Add missing depends on relation in test data project

^KT-61106 Verification Pending
This commit is contained in:
Anton Lakotka
2023-09-12 18:07:33 +02:00
committed by Space Team
parent db03cd8cd7
commit e23801fdfc
2 changed files with 7 additions and 2 deletions
@@ -52,7 +52,9 @@ kotlin {
implementation 'org.jetbrains.kotlin:kotlin-test-js' implementation 'org.jetbrains.kotlin:kotlin-test-js'
} }
} }
nativeMain nativeMain {
dependsOn commonMain
}
configure([macos64Main, macosArm64Main, linux64Main, mingw64Main]) { configure([macos64Main, macosArm64Main, linux64Main, mingw64Main]) {
dependsOn nativeMain dependsOn nativeMain
} }
@@ -18,6 +18,7 @@ kotlin {
val mingw64 = mingwX64("mingw64") val mingw64 = mingwX64("mingw64")
sourceSets { sourceSets {
val commonMain by getting
val commonTest by getting { val commonTest by getting {
dependencies { dependencies {
implementation(kotlin("test-common")) implementation(kotlin("test-common"))
@@ -44,7 +45,9 @@ kotlin {
} }
} }
val nativeMain by creating val nativeMain by creating {
dependsOn(commonMain)
}
configure(listOf(macos64, macosArm64, linux64, mingw64)) { configure(listOf(macos64, macosArm64, linux64, mingw64)) {
compilations["main"].defaultSourceSet.dependsOn(nativeMain) compilations["main"].defaultSourceSet.dependsOn(nativeMain)
} }