Release version 2.0.0 and add test-app setup.

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.
This commit is contained in:
2025-03-27 19:41:49 +01:00
parent bcc88f71e4
commit 29cc78c6ba
10 changed files with 442 additions and 1 deletions

View File

@@ -0,0 +1,77 @@
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")
}