Skip to content

Commit

Permalink
ableton module gradle build updated
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Nov 9, 2023
1 parent da4980f commit aeec4e9
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions xemantic-osc-ableton/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,29 +47,29 @@ kotlin {
all {
languageSettings {
languageVersion = libs.versions.kotlinLanguageVersion.get()
optIn("kotlin.ExperimentalStdlibApi," +
"kotlinx.coroutines.ExperimentalCoroutinesApi," +
"kotlinx.coroutines.DelicateCoroutinesApi"
)
apiVersion = libs.versions.kotlinLanguageVersion.get()
progressiveMode = true
optIn("kotlin.ExperimentalStdlibApi")
}
}

val commonMain by getting {
commonMain {
dependencies {
implementation(project(":xemantic-osc-api"))
implementation(libs.kotlin.logging)
}
}

val commonTest by getting {
commonTest {
dependencies {
implementation(project(":xemantic-osc-test"))
implementation(libs.kotlin.test)
implementation(libs.kotlin.coroutines.test)
implementation(libs.kotest.assertions.core)
}
}

val jvmMain by getting {
jvmMain {
dependencies {
runtimeOnly(libs.log4j.slf4j2)
runtimeOnly(libs.log4j.core)
Expand All @@ -82,7 +78,7 @@ kotlin {
}
}

val jvmTest by getting {
jvmTest {
dependencies {
implementation(libs.mockk)
}
Expand Down

0 comments on commit aeec4e9

Please sign in to comment.