Updated the version from 2.0.0-SNAPSHOT to 2.0.0 in `build.gradle.kts` for release readiness. Added a new `test-app` project including Gradle build files, scripts, and configuration for Kotlin multiplatform with JS and JVM targets to enable testing and application runtime.
78 lines
1.6 KiB
Plaintext
78 lines
1.6 KiB
Plaintext
plugins {
|
|
kotlin("multiplatform") version "2.1.0"
|
|
application
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
setUrl("https://gitea.astraeus.nl/api/packages/rnentjes/maven")
|
|
}
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
kotlin {
|
|
js {
|
|
compilerOptions {
|
|
target.set("es2015")
|
|
}
|
|
//useEsModules()
|
|
//useCommonJs()
|
|
|
|
binaries.executable()
|
|
browser {
|
|
commonWebpackConfig {
|
|
outputFileName = "vst-ui-base-test.js"
|
|
sourceMaps = true
|
|
devtool = "inline-source-map"
|
|
}
|
|
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/web/"))
|
|
}
|
|
}
|
|
}
|
|
/*
|
|
@OptIn(ExperimentalWasmDsl::class)
|
|
wasmJs {
|
|
binaries.executable()
|
|
browser{
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/web/"))
|
|
}
|
|
}
|
|
|
|
mavenPublication {
|
|
groupId = group as String
|
|
pom { name = "${project.name}-wasm-js" }
|
|
}
|
|
}
|
|
*/
|
|
jvm {
|
|
withJava()
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
//base
|
|
api("nl.astraeus:vst-ui-base")
|
|
}
|
|
}
|
|
val jsMain by getting
|
|
val jsTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test-js"))
|
|
}
|
|
}
|
|
val jvmMain by getting
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set("nl.astraeus.vst.ui.TestKt")
|
|
}
|