- Updated Gradle version in `.env`, Dockerfiles, and wrapper to 9.3.1. - Replaced alias-based application of `kotlinMultiplatform` plugin with direct `id` usage in subprojects to resolve "Plugin loaded multiple times" error. - Applied centralized plugin management and Gradle daemon optimizations to improve Docker build stability and address KMP classloading issues.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
plugins {
|
|
// Fix for "Plugin loaded multiple times": Apply plugin by ID without version (inherited from root)
|
|
id("org.jetbrains.kotlin.multiplatform")
|
|
alias(libs.plugins.kotlinSerialization)
|
|
}
|
|
|
|
kotlin {
|
|
jvm()
|
|
js {
|
|
browser()
|
|
}
|
|
// Wasm support enabled?
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
|
|
wasmJs {
|
|
browser()
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
implementation(projects.core.coreDomain)
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.kotlinx.datetime)
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
}
|
|
}
|
|
commonTest {
|
|
dependencies {
|
|
implementation(libs.kotlin.test)
|
|
}
|
|
}
|
|
jvmMain {
|
|
dependencies {
|
|
// Removed Exposed dependencies to make this module KMP compatible
|
|
// implementation(libs.exposed.core)
|
|
// implementation(libs.exposed.jdbc)
|
|
}
|
|
}
|
|
}
|
|
}
|