64 lines
1.8 KiB
Kotlin
64 lines
1.8 KiB
Kotlin
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
|
|
|
|
plugins {
|
|
kotlin("multiplatform") version "2.0.0-RC1"
|
|
}
|
|
|
|
group = "nl.astraeus"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
jvm {
|
|
withJava()
|
|
}
|
|
js(KotlinJsCompilerType.IR) {
|
|
binaries.executable()
|
|
browser {
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/web/"))
|
|
}
|
|
}
|
|
}
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api("nl.astraeus:kotlin-css-generator:1.0.7")
|
|
|
|
implementation("io.github.microutils:kotlin-logging:3.0.5")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
|
|
}
|
|
}
|
|
val commonTest by getting
|
|
val jvmMain by getting {
|
|
dependencies {
|
|
implementation("org.slf4j:slf4j-api:2.0.9")
|
|
implementation("org.slf4j:slf4j-simple:2.0.13")
|
|
|
|
implementation("io.undertow:undertow-core:2.3.12.Final")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
|
|
|
|
implementation("org.xerial:sqlite-jdbc:3.32.3.2")
|
|
implementation("com.zaxxer:HikariCP:4.0.3")
|
|
implementation("nl.astraeus:simple-jdbc-stats:1.6.1") {
|
|
exclude(group = "org.slf4j", module = "slf4j-api")
|
|
}
|
|
//implementation("nl.astraeus:simple-database-kotlin:2.0.8-SNAPSHOT")
|
|
}
|
|
}
|
|
val jvmTest by getting {
|
|
dependencies {
|
|
}
|
|
}
|
|
val jsMain by getting {
|
|
dependencies {
|
|
implementation("nl.astraeus:kotlin-komponent-js:1.2.2")
|
|
}
|
|
}
|
|
val jsTest by getting
|
|
}
|
|
} |