Skip to content

Commit

Permalink
collections module build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Nov 9, 2023
1 parent 86dd34e commit ed29d1d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions xemantic-osc-collections/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,19 @@ kotlin {

explicitApi()

jvm {
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
jvm {}

js(IR) {
js {
browser {}
}

val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
@Suppress("UNUSED_VARIABLE")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Linux" -> linuxX64("native")
isMingwX64 -> mingwX64("native")
hostOs == "Mac OS X" -> macosX64()
hostOs == "Linux" -> linuxX64()
isMingwX64 -> mingwX64()
else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
}

Expand All @@ -51,12 +47,12 @@ kotlin {
all {
languageSettings {
languageVersion = libs.versions.kotlinLanguageVersion.get()
apiVersion = libs.versions.kotlinLanguageVersion.get()
progressiveMode = true
}
}

val commonMain by getting

val commonTest by getting {
commonTest {
dependencies {
implementation(libs.kotlin.test)
implementation(libs.kotest.assertions.core)
Expand Down

0 comments on commit ed29d1d

Please sign in to comment.