Skip to content

Commit

Permalink
build: test module
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Nov 9, 2023
1 parent fbf9b7d commit 69f306d
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions xemantic-osc-test/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* xemantic-osc - Kotlin idiomatic and multiplatform OSC protocol support
* Copyright (C) 2023 Kazimierz Pogoda
*
* This file is part of xemantic-osc.
*
* xemantic-osc is free software: you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* xemantic-osc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with xemantic-osc.
* If not, see <https://www.gnu.org/licenses/>.
*/

plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.dokka)
`maven-publish`
}

kotlin {

jvm {}

js {
browser {}
}

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

sourceSets {

all {
languageSettings {
languageVersion = libs.versions.kotlinLanguageVersion.get()
apiVersion = libs.versions.kotlinLanguageVersion.get()
progressiveMode = true
optIn("kotlin.ExperimentalStdlibApi")
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
}
}

commonMain {
dependencies {
api(project(":xemantic-osc-api"))
api(libs.kotlin.logging)
implementation(libs.kotlin.coroutines.test)
implementation(libs.ktor.io)
implementation(libs.kotest.assertions.core)
}
}

}

}

0 comments on commit 69f306d

Please sign in to comment.