Refactor build and server setup

Introduced a versioning task in a new `version.gradle.kts` file to auto-generate version properties. The main server setup in `Main.kt` was refactored to streamline server initialization using `UndertowServer`. Dependencies and configurations in `build.gradle.kts` were updated to deploy effectively, including improved yarn lock handling and symbolic link integration.
This commit is contained in:
2024-12-08 13:41:00 +01:00
parent b412dd9b4e
commit 92e68cdc47
6 changed files with 255 additions and 136 deletions

View File

@@ -1,36 +1,36 @@
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
buildscript {
apply(from = "../common.gradle.kts")
apply(from = "../common.gradle.kts")
}
plugins {
kotlin("multiplatform")
kotlin("multiplatform")
}
kotlin {
js {
compilerOptions {
target.set("es2015")
}
browser()
js {
compilerOptions {
target.set("es2015")
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser()
mavenPublication {
groupId = group as String
pom { name = "${project.name}-wasm-js" }
}
}
jvm()
/* @OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser()
mavenPublication {
groupId = group as String
pom { name = "${project.name}-wasm-js" }
}
}*/
jvm()
sourceSets {
val commonMain by getting
val jsMain by getting
val wasmJsMain by getting
}
sourceSets {
val commonMain by getting
val jsMain by getting
val jvmMain by getting
//val wasmJsMain by getting
}
}