diff --git a/backend/build.gradle.kts b/backend/build.gradle.kts index 64d7d810..17c87c40 100644 --- a/backend/build.gradle.kts +++ b/backend/build.gradle.kts @@ -4,7 +4,9 @@ plugins { } dependencies { - implementation(projects.core) + implementation(projects.core.coreData) + implementation(projects.core.coreUsers) + implementation(projects.core.coreDomain) implementation(projects.fake) implementation(projects.mongo) implementation(projects.remoteServer) diff --git a/core/build.gradle.kts b/core/build.gradle.kts deleted file mode 100644 index 947d2d25..00000000 --- a/core/build.gradle.kts +++ /dev/null @@ -1,58 +0,0 @@ -@file:Suppress("UNUSED_VARIABLE") - -import java.net.URL - -plugins { - kotlin("multiplatform") -} - -kotlin { - jvm { - jvmToolchain(17) - testRuns.named("test") { - executionTask.configure { - useJUnitPlatform() - } - } - } - js(IR) { - browser { - testTask { - useMocha { - timeout = "1 minute" - } - } - } - } - - sourceSets { - val commonMain by getting { - dependencies { - api("opensavvy.pedestal:backbone:_") - api("opensavvy.pedestal:state-arrow:_") - api(KotlinX.datetime) - - api(projects.core.coreData) - api(projects.core.coreUsers) - api(projects.core.coreDomain) - } - } - - val commonTest by getting { - dependencies { - implementation(projects.test) - implementation(projects.fake) - } - } - } -} - -tasks.withType().configureEach { - dokkaSourceSets.configureEach { - sourceLink { - localDirectory.set(file("src")) - remoteUrl.set(URL("https://gitlab.com/opensavvy/formulaide/-/blob/main/core/src")) - remoteLineSuffix.set("#L") - } - } -} diff --git a/fake/build.gradle.kts b/fake/build.gradle.kts index cef73a7a..8b87b3c9 100644 --- a/fake/build.gradle.kts +++ b/fake/build.gradle.kts @@ -26,7 +26,9 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api(projects.core) + api(projects.core.coreData) + api(projects.core.coreUsers) + api(projects.core.coreDomain) implementation("opensavvy.pedestal:logger:_") } diff --git a/mongo/build.gradle.kts b/mongo/build.gradle.kts index ad304fc9..757bb15a 100644 --- a/mongo/build.gradle.kts +++ b/mongo/build.gradle.kts @@ -6,7 +6,9 @@ plugins { } dependencies { - api(projects.core) + api(projects.core.coreData) + api(projects.core.coreUsers) + api(projects.core.coreDomain) api(KotlinX.coroutines.core) implementation("org.litote.kmongo:kmongo-coroutine-serialization:_") diff --git a/remote-common/build.gradle.kts b/remote-common/build.gradle.kts index ef590335..a8ddccc7 100644 --- a/remote-common/build.gradle.kts +++ b/remote-common/build.gradle.kts @@ -29,7 +29,9 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api(projects.core) + api(projects.core.coreData) + api(projects.core.coreUsers) + api(projects.core.coreDomain) api("opensavvy.pedestal:spine:_") api(KotlinX.serialization.core) diff --git a/settings.gradle.kts b/settings.gradle.kts index bfc6219d..db9ee480 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,7 +15,6 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") include( "backend", - "core", "core:core-data", "core:core-users", diff --git a/test/build.gradle.kts b/test/build.gradle.kts index 291e7ace..1a297656 100644 --- a/test/build.gradle.kts +++ b/test/build.gradle.kts @@ -31,7 +31,9 @@ kotlin { val commonMain by getting { dependencies { - api(projects.core) + api(projects.core.coreData) + api(projects.core.coreUsers) + api(projects.core.coreDomain) api(projects.testStructure) } }