Skip to content

Commit

Permalink
Fix nonJvm and jvmLincheck sourcesets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Feb 23, 2024
1 parent d0f9f74 commit 76e44e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
1 change: 0 additions & 1 deletion build-logic/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn

kotlin.code.style=official
kotlin.experimental.tryK2=true
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,19 @@ private fun KotlinMultiplatformExtension.configureTargets(project: Project) {
applyDefaultHierarchyTemplate()

sourceSets {
val jvmAndIos by creating {
val nonJvmMain by creating {
dependsOn(commonMain.get())
}
iosMain.get().dependsOn(jvmAndIos)
jvmMain.get().dependsOn(jvmAndIos)

val nonJvm by creating {
dependsOn(commonMain.get())
val jvmLincheck by getting {
dependsOn(jvmMain.get())
}
jsMain.get().dependsOn(nonJvm)
jsMain.get().dependsOn(nonJvmMain)
@Suppress("UnusedPrivateProperty")
val wasmJsMain by getting {
dependsOn(nonJvm)
dependsOn(nonJvmMain)
}
appleMain.get().dependsOn(nonJvm)
linuxMain.get().dependsOn(nonJvm)
mingwMain.get().dependsOn(nonJvm)
appleMain.get().dependsOn(nonJvmMain)
linuxMain.get().dependsOn(nonJvmMain)
mingwMain.get().dependsOn(nonJvmMain)
}
}
1 change: 0 additions & 1 deletion cache4k/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ kotlin {
}
jvmLincheck {
dependencies {
dependsOn(jvmMain)
implementation(kotlin("test-junit5"))
implementation(libs.lincheck)
}
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ org.gradle.configureondemand=true
org.gradle.caching=true

kotlin.code.style=official
kotlin.experimental.tryK2=false

0 comments on commit 76e44e2

Please sign in to comment.