meldestelle/backend/infrastructure/event-store/event-store-api/build.gradle.kts
StefanMoCoAt 82934804f3 chore(tests, dependencies, build): optimize test assertions, fix mocking issues, and update dependencies
- Simplified test assertions by removing redundant type casting in `ResultTest`.
- Improved Redis mock behavior and verification leniency in `RedisDistributedCacheTest`.
- Updated dependency versions in `libs.versions.toml` (e.g., downgraded `ktor` and adjusted `composeMultiplatform`).
- Refined Gradle build scripts for consistent compiler args and testing configurations (e.g., disabled browser tests in frontend).
- Addressed mocking issues in `RedisDistributedCacheTest` to prevent `NoSuchMethodError`.
- Fixed package imports due to framework updates in Spring Boot and Micrometer-related components.
2026-01-08 01:29:54 +01:00

59 lines
1.9 KiB
Plaintext

// Dieses Modul definiert die provider-agnostische API für den Event Store.
// Es enthält die Interfaces (z.B. `EventStore`, `EventSerializer`) und die
// Domänen-Events aus `core-domain`, die gespeichert und publiziert werden.
plugins {
alias(libs.plugins.kotlinJvm)
// Für bessere IDE-Unterstützung und Dokumentation
`java-library`
}
kotlin {
compilerOptions {
// Optimierungen für API-Module
freeCompilerArgs.addAll(
"-opt-in=kotlin.time.ExperimentalTime"
)
}
}
java {
// Aktiviert die Erstellung von Source- und Javadoc-JARs für bessere API-Dokumentation
withSourcesJar()
withJavadocJar()
}
dependencies {
// === Core Dependencies ===
// Stellt sicher, dass alle Versionen aus der zentralen BOM kommen
implementation(platform(projects.platform.platformBom))
// Abhängigkeit zu den Core-Modulen, um auf Domänenobjekte (Events)
// und technische Hilfsklassen zugreifen zu können
api(projects.core.coreDomain)
implementation(projects.core.coreUtils)
// === Test Dependencies ===
// Stellt alle Test-Abhängigkeiten gebündelt bereit
testImplementation(projects.platform.platformTesting)
testImplementation(libs.bundles.testing.jvm)
// Für erweiterte Test-Unterstützung bei API-Tests
testImplementation(libs.kotlinx.coroutines.test)
}
// === Task Configuration ===
// Optimiert die Test-Ausführung
tasks.test {
useJUnitPlatform()
// Parallelisierung für bessere Performance
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
}
// Konfiguration für bessere JAR-Erstellung bei API-Modulen
tasks.jar {
manifest {
attributes(
"Implementation-Title" to "Event Store API",
"Implementation-Version" to project.version,
"Automatic-Module-Name" to "at.mocode.infrastructure.eventstore.api"
)
}
}