fix(gradle) gradle.build

This commit is contained in:
stefan
2025-07-29 16:32:38 +02:00
parent 260460149a
commit 965aa68fa7
13 changed files with 338 additions and 420 deletions
+21 -5
View File
@@ -1,17 +1,33 @@
plugins {
// Definiert dieses Modul als ein Standard Kotlin/JVM-Modul.
kotlin("jvm")
// Aktiviert das Kotlinx Serialization Plugin, da unsere DTOs und Enums
// als @Serializable markiert sind.
alias(libs.plugins.kotlin.serialization)
}
dependencies {
// Stellt sicher, dass dieses Modul Zugriff auf die im zentralen Katalog
// definierten Bibliotheken hat.
api(projects.platform.platformDependencies)
// UUID handling
api("com.benasher44:uuid:0.8.2")
// --- Kern-Abhängigkeiten für das Domänen-Modell ---
// Diese Bibliotheken definieren die grundlegenden Datentypen unseres Modells.
// Wir verwenden `api` anstelle von `implementation`, damit Services, die
// `core-domain` einbinden, diese Typen ebenfalls direkt nutzen können.
// Serialization
api("org.jetbrains.kotlinx:kotlinx-serialization-json")
api("org.jetbrains.kotlinx:kotlinx-datetime")
// Stellt den `Uuid`-Typ für unsere eindeutigen IDs bereit.
api(libs.uuid)
// Stellt die `kotlinx.serialization`-Engine bereit, insbesondere für JSON.
api(libs.kotlinx.serialization.json)
// Stellt moderne Datums- und Zeit-Typen wie `Instant` und `LocalDate` bereit.
api(libs.kotlinx.datetime)
// --- Test-Abhängigkeiten ---
// Stellt die notwendigen Bibliotheken für das Schreiben von Tests bereit.
// `testImplementation` sorgt dafür, dass diese Bibliotheken nicht Teil
// des finalen produktiven Codes werden.
testImplementation(projects.platform.platformTesting)
}
+10 -11
View File
@@ -3,27 +3,26 @@ plugins {
}
dependencies {
// Verwendet die zentrale Platform-BOM für konsistente Versionen
api(projects.platform.platformDependencies)
// Explizite `api`-Abhängigkeit zum core-domain Modul.
api(projects.core.coreDomain)
// --- Coroutines & Asynchronität ---
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
api(libs.kotlinx.coroutines.core)
// --- Datenbank-Management ---
api("org.jetbrains.exposed:exposed-core")
api("org.jetbrains.exposed:exposed-dao")
api("org.jetbrains.exposed:exposed-jdbc")
api("org.jetbrains.exposed:exposed-kotlin-datetime")
api("com.zaxxer:HikariCP")
// Flyway Core-Bibliothek
api("org.flywaydb:flyway-core:9.22.3")
// KORREKTUR: Spezifischer Treiber für PostgreSQL mit Versionsnummer
api("org.flywaydb:flyway-database-postgresql:9.22.3")
api(libs.exposed.core)
api(libs.exposed.dao)
api(libs.exposed.jdbc)
api(libs.exposed.kotlin.datetime)
api(libs.hikari.cp)
api(libs.flyway.core)
api(libs.flyway.postgresql)
// --- Service Discovery ---
api("com.orbitz.consul:consul-client:1.5.3")
api(libs.consul.client)
// --- Testing ---
testImplementation(projects.platform.platformTesting)