refactor: centralize common dependencies in build-logic module

This commit is contained in:
2026-07-03 09:58:18 +02:00
parent 4d397ac5e8
commit a8bdc26e3c
8 changed files with 9 additions and 62 deletions
@@ -41,6 +41,14 @@ kotlin {
} }
sourceSets { sourceSets {
commonMain.dependencies {
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
}
commonTest.dependencies { commonTest.dependencies {
implementation(libs.kotlin.test) implementation(libs.kotlin.test)
} }
-11
View File
@@ -17,17 +17,6 @@ kotlin {
// Desktop audio: Ogg Vorbis SPI so javax.sound.sampled can decode .ogg // Desktop audio: Ogg Vorbis SPI so javax.sound.sampled can decode .ogg
implementation(libs.vorbisspi) implementation(libs.vorbisspi)
} }
commonMain.dependencies {
// Models (exposed through AudioPlayer's public API)
// api(projects.core.model)
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
}
// webMain is the js + wasmJs intermediate source set from the default hierarchy template. // webMain is the js + wasmJs intermediate source set from the default hierarchy template.
webMain.dependencies { webMain.dependencies {
// Browser audio (HTMLAudioElement, document) for js + wasmJs // Browser audio (HTMLAudioElement, document) for js + wasmJs
-11
View File
@@ -6,15 +6,4 @@ kotlin {
androidLibrary { androidLibrary {
namespace = "fr.ajaury.gwenedeg.core.coroutines" namespace = "fr.ajaury.gwenedeg.core.coroutines"
} }
sourceSets {
commonMain.dependencies {
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
}
}
} }
-7
View File
@@ -18,13 +18,6 @@ kotlin {
implementation(projects.data.records) implementation(projects.data.records)
implementation(projects.data.resources) implementation(projects.data.resources)
implementation(projects.data.subtitle) implementation(projects.data.subtitle)
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
} }
} }
} }
+1 -12
View File
@@ -6,15 +6,4 @@ kotlin {
androidLibrary { androidLibrary {
namespace = "fr.ajaury.gwenedeg.preferences" namespace = "fr.ajaury.gwenedeg.preferences"
} }
}
sourceSets {
commonMain.dependencies {
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
}
}
}
-7
View File
@@ -11,13 +11,6 @@ kotlin {
commonMain.dependencies { commonMain.dependencies {
// Core modules // Core modules
implementation(projects.core.model) implementation(projects.core.model)
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
} }
} }
} }
-7
View File
@@ -19,13 +19,6 @@ kotlin {
// Compose resources // Compose resources
implementation(libs.compose.runtime) implementation(libs.compose.runtime)
implementation(libs.compose.components.resources) implementation(libs.compose.components.resources)
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
} }
} }
} }
-7
View File
@@ -13,13 +13,6 @@ kotlin {
implementation(projects.core.coroutines) implementation(projects.core.coroutines)
implementation(projects.core.logging) implementation(projects.core.logging)
implementation(projects.core.model) implementation(projects.core.model)
// Coroutines
implementation(libs.kotlinx.coroutinesCore)
// DI
implementation(project.dependencies.platform(libs.koin.bom))
implementation(libs.koin.core)
} }
} }
} }