Refactor events-service Gradle build: streamline plugin and dependency declarations, resolve naming inconsistencies, and update module references for improved maintainability.
This commit is contained in:
parent
5d1c89438c
commit
e83b09fd63
|
|
@ -1,50 +1,40 @@
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.jvm)
|
alias(libs.plugins.kotlinJvm)
|
||||||
alias(libs.plugins.kotlin.spring)
|
alias(libs.plugins.kotlinSpring)
|
||||||
|
alias(libs.plugins.spring.boot)
|
||||||
// KORREKTUR: Dieses Plugin ist entscheidend. Es schaltet den `springBoot`-Block
|
alias(libs.plugins.spring.dependencyManagement)
|
||||||
// und alle Spring-Boot-spezifischen Gradle-Tasks frei.
|
|
||||||
alias(libs.plugins.spring.boot)
|
|
||||||
|
|
||||||
// Dependency Management für konsistente Spring-Versionen
|
|
||||||
alias(libs.plugins.spring.dependencyManagement)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dieser Block funktioniert jetzt, weil das `springBoot`-Plugin oben aktiviert ist.
|
|
||||||
springBoot {
|
springBoot {
|
||||||
mainClass.set("at.mocode.events.service.EventsServiceApplicationKt")
|
mainClass.set("at.mocode.events.service.EventsServiceApplicationKt")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Interne Module
|
implementation(platform(projects.platform.platformBom))
|
||||||
implementation(projects.platform.platformDependencies)
|
implementation(projects.platform.platformDependencies)
|
||||||
implementation(projects.core.coreUtils)
|
implementation(projects.core.coreUtils)
|
||||||
implementation(projects.events.eventsDomain)
|
implementation(projects.backend.services.events.eventsDomain)
|
||||||
implementation(projects.events.eventsApplication)
|
implementation(projects.backend.services.events.eventsInfrastructure)
|
||||||
implementation(projects.events.eventsInfrastructure)
|
implementation(projects.backend.services.events.eventsApi)
|
||||||
implementation(projects.events.eventsApi)
|
implementation(projects.backend.infrastructure.persistence)
|
||||||
|
|
||||||
// Infrastruktur-Clients
|
implementation(libs.exposed.core)
|
||||||
implementation(projects.infrastructure.cache.redisCache)
|
implementation(libs.exposed.dao)
|
||||||
implementation(projects.infrastructure.messaging.messagingClient)
|
implementation(libs.exposed.jdbc)
|
||||||
implementation(projects.infrastructure.monitoring.monitoringClient)
|
implementation(libs.exposed.kotlin.datetime)
|
||||||
|
|
||||||
// KORREKTUR: Alle externen Abhängigkeiten werden jetzt über den Version Catalog bezogen.
|
implementation(projects.backend.infrastructure.cache.valkeyCache)
|
||||||
|
implementation(projects.backend.infrastructure.messaging.messagingClient)
|
||||||
|
implementation(projects.backend.infrastructure.monitoring.monitoringClient)
|
||||||
|
|
||||||
// Spring Boot Starters
|
implementation(libs.spring.boot.starter.web)
|
||||||
implementation(libs.spring.boot.starter.web)
|
implementation(libs.spring.boot.starter.validation)
|
||||||
implementation(libs.spring.boot.starter.validation)
|
implementation(libs.spring.boot.starter.actuator)
|
||||||
implementation(libs.spring.boot.starter.actuator)
|
|
||||||
|
|
||||||
// Datenbank-Treiber
|
runtimeOnly(libs.postgresql.driver)
|
||||||
runtimeOnly(libs.postgresql.driver)
|
|
||||||
|
|
||||||
// Testing
|
testImplementation(projects.platform.platformTesting)
|
||||||
testImplementation(projects.platform.platformTesting)
|
testImplementation(libs.spring.boot.starter.test)
|
||||||
testImplementation(libs.spring.boot.starter.test)
|
testImplementation(libs.logback.classic)
|
||||||
testImplementation(libs.logback.classic) // SLF4J provider for tests
|
testImplementation("com.h2database:h2")
|
||||||
}
|
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user