Upgrade Kotlin to 2.1.0 and implement database layer

Updated the Kotlin multiplatform plugin to version 2.1.0 and added the necessary dependency for the Kotlin-simple-logging library. Introduced new components, `Database.kt` and `Migrations.kt`, to manage database connections and migrations, along with adjustments to build configuration artifacts.
This commit is contained in:
2024-12-01 11:15:52 +01:00
parent 850f5dad8e
commit 3f7156e31f
6 changed files with 252 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
plugins {
kotlin("multiplatform") version "2.0.21"
kotlin("multiplatform") version "2.1.0"
}
group = "nl.astraeus"
@@ -19,9 +19,7 @@ repositories {
kotlin {
jvmToolchain(17)
jvm {
withJava()
}
jvm()
js {
binaries.executable()
browser {
@@ -33,6 +31,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api("nl.astraeus:kotlin-simple-logging:1.1.1")
api("nl.astraeus:kotlin-css-generator:1.0.10")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.0")