diff --git a/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts index a85a9692..7af25918 100644 --- a/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts +++ b/build-logic/src/main/kotlin/elmslie.kotlin-multiplatform-lib.gradle.kts @@ -1,22 +1,21 @@ -@file:Suppress("UnstableApiUsage") - plugins { kotlin("multiplatform") - id("com.android.library") id("elmslie.detekt") } +java { + targetCompatibility = JvmTarget + sourceCompatibility = JvmTarget +} + kotlin { applyDefaultHierarchyTemplate() - androidTarget { + jvm { compilations.all { kotlinOptions { jvmTarget = JvmTarget.toString() } } } - - iosX64() - iosArm64() -} +} \ No newline at end of file diff --git a/elmslie-core/build.gradle.kts b/elmslie-core/build.gradle.kts index a16e6bdd..36a476e5 100644 --- a/elmslie-core/build.gradle.kts +++ b/elmslie-core/build.gradle.kts @@ -1,9 +1,19 @@ plugins { - id("elmslie.kotlin-jvm-lib") - id("elmslie.tests-convention") + id("elmslie.kotlin-multiplatform-lib") } -dependencies { - implementation(libs.kotlinx.coroutinesCore) - testImplementation(libs.kotlinx.coroutinesTest) -} +kotlin { + sourceSets { + val commonMain by getting { + dependencies { + implementation(libs.kotlinx.coroutinesCore) + } + } + val commonTest by getting { + dependencies { + implementation(libs.kotlinx.coroutinesTest) + implementation(libs.kotlin.test) + } + } + } +} \ No newline at end of file