refactor: replace Redis references with Valkey in tests and cache modules
Updated test cases in `ValkeyEventStoreTest` and cache implementation in `ValkeyDistributedCache` to fully transition from Redis to Valkey. Adjusted configurations, templates, connection handling, and exception management to reflect Valkey-specific behavior and APIs.
This commit is contained in:
@@ -1,43 +1,49 @@
|
||||
// Dieses Modul stellt High-Level-Clients (Producer/Consumer) für die
|
||||
// Interaktion mit Apache Kafka bereit. Es baut auf der `messaging-config` auf.
|
||||
plugins {
|
||||
alias(libs.plugins.kotlinJvm)
|
||||
alias(libs.plugins.kotlinSpring)
|
||||
alias(libs.plugins.spring.boot)
|
||||
alias(libs.plugins.spring.dependencyManagement)
|
||||
alias(libs.plugins.kotlinJvm)
|
||||
alias(libs.plugins.kotlinSpring)
|
||||
alias(libs.plugins.spring.boot)
|
||||
alias(libs.plugins.spring.dependencyManagement)
|
||||
}
|
||||
|
||||
// Deaktiviert die Erstellung eines ausführbaren Jars für dieses Bibliotheks-Modul.
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
enabled = false
|
||||
}
|
||||
|
||||
// Stellt sicher, dass stattdessen ein reguläres Jar gebaut wird
|
||||
tasks.jar {
|
||||
enabled = true
|
||||
enabled = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Stellt sicher, dass alle Versionen aus der zentralen BOM kommen.
|
||||
implementation(platform(projects.platform.platformBom))
|
||||
// Stellt gemeinsame Abhängigkeiten bereit.
|
||||
implementation(projects.platform.platformDependencies)
|
||||
// Stellt sicher, dass alle Versionen aus der zentralen BOM kommen.
|
||||
implementation(platform(projects.platform.platformBom))
|
||||
// Stellt gemeinsame Abhängigkeiten bereit.
|
||||
implementation(projects.platform.platformDependencies)
|
||||
|
||||
// Spring Boot / Spring Framework APIs used directly in this module
|
||||
// (e.g. ConditionalOnMissingBean)
|
||||
implementation("org.springframework.boot:spring-boot-autoconfigure")
|
||||
implementation("org.springframework.boot:spring-boot")
|
||||
// Spring Boot / Spring Framework APIs used directly in this module
|
||||
// (e.g. ConditionalOnMissingBean)
|
||||
implementation("org.springframework.boot:spring-boot-autoconfigure")
|
||||
implementation("org.springframework.boot:spring-boot")
|
||||
|
||||
// Spring Kafka (ReactiveKafkaProducerTemplate, etc.)
|
||||
implementation(libs.spring.kafka)
|
||||
// Spring Kafka (ReactiveKafkaProducerTemplate, etc.)
|
||||
implementation(libs.spring.kafka)
|
||||
|
||||
// Jakarta annotations used by Spring / configuration classes
|
||||
implementation(libs.jakarta.annotation.api)
|
||||
// Jakarta annotations used by Spring / configuration classes
|
||||
implementation(libs.jakarta.annotation.api)
|
||||
|
||||
// Baut auf der zentralen Kafka-Konfiguration auf und erbt deren Abhängigkeiten.
|
||||
implementation(projects.backend.infrastructure.messaging.messagingConfig)
|
||||
// Fügt die reaktive Kafka-Implementierung hinzu (Project Reactor).
|
||||
implementation(libs.reactor.kafka)
|
||||
// Stellt alle Test-Abhängigkeiten gebündelt bereit.
|
||||
testImplementation(projects.platform.platformTesting)
|
||||
// Baut auf der zentralen Kafka-Konfiguration auf und erbt deren Abhängigkeiten.
|
||||
implementation(projects.backend.infrastructure.messaging.messagingConfig)
|
||||
// Fügt die reaktive Kafka-Implementierung hinzu (Project Reactor).
|
||||
implementation(libs.reactor.kafka)
|
||||
// Stellt alle Test-Abhängigkeiten gebündelt bereit.
|
||||
testImplementation(projects.platform.platformTesting)
|
||||
}
|
||||
|
||||
// JVM Native Access (JDK 22+): Unterdrückt Warnung/Blockade für Snappy (org.xerial.snappy)
|
||||
tasks.withType<Test>().configureEach {
|
||||
// Erfordert JDK 21+; ab zukünftigen Versionen sonst Fehler statt Warnung
|
||||
jvmArgs("--enable-native-access=ALL-UNNAMED")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user