set up kafka

This commit is contained in:
2025-08-05 08:16:19 +02:00
committed by swordsteel
parent 3effd930ad
commit 93aad65385
3 changed files with 11 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ dependencies {
implementation(hlaeja.kotlinx.coroutines) implementation(hlaeja.kotlinx.coroutines)
implementation(hlaeja.library.common.messages) implementation(hlaeja.library.common.messages)
implementation(hlaeja.library.jwt) implementation(hlaeja.library.jwt)
implementation(hlaeja.springboot.kafka)
implementation(hlaeja.springboot.starter.actuator) implementation(hlaeja.springboot.starter.actuator)
implementation(hlaeja.springboot.starter.r2dbc) implementation(hlaeja.springboot.starter.r2dbc)
implementation(hlaeja.springboot.starter.security) implementation(hlaeja.springboot.starter.security)
@@ -28,6 +29,7 @@ dependencies {
testImplementation(hlaeja.projectreactor.reactor.test) testImplementation(hlaeja.projectreactor.reactor.test)
testImplementation(hlaeja.kotlin.test.junit5) testImplementation(hlaeja.kotlin.test.junit5)
testImplementation(hlaeja.kotlinx.coroutines.test) testImplementation(hlaeja.kotlinx.coroutines.test)
testImplementation(hlaeja.springboot.kafka.test)
testImplementation(hlaeja.springboot.starter.test) testImplementation(hlaeja.springboot.starter.test)
testRuntimeOnly(hlaeja.junit.platform.launcher) testRuntimeOnly(hlaeja.junit.platform.launcher)
@@ -37,6 +39,7 @@ dependencies {
testIntegrationImplementation(hlaeja.projectreactor.reactor.test) testIntegrationImplementation(hlaeja.projectreactor.reactor.test)
testIntegrationImplementation(hlaeja.kotlin.test.junit5) testIntegrationImplementation(hlaeja.kotlin.test.junit5)
testIntegrationImplementation(hlaeja.kotlinx.coroutines.test) testIntegrationImplementation(hlaeja.kotlinx.coroutines.test)
testIntegrationImplementation(hlaeja.springboot.kafka.test)
testIntegrationImplementation(hlaeja.springboot.starter.test) testIntegrationImplementation(hlaeja.springboot.starter.test)
testIntegrationRuntimeOnly(hlaeja.junit.platform.launcher) testIntegrationRuntimeOnly(hlaeja.junit.platform.launcher)

View File

@@ -1,4 +1,4 @@
kotlin.code.style=official kotlin.code.style=official
version=0.4.0-SNAPSHOT version=0.4.0-SNAPSHOT
catalog=0.11.0 catalog=0.12.0-SNAPSHOT
container.port.host=9050 container.port.host=9050

View File

@@ -11,6 +11,9 @@ spring:
version: "%APP_BUILD_OS_VERSION%" version: "%APP_BUILD_OS_VERSION%"
r2dbc: r2dbc:
username: services username: services
kafka:
producer:
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
management: management:
endpoints: endpoints:
@@ -40,6 +43,8 @@ spring:
r2dbc: r2dbc:
url: r2dbc:postgresql://localhost:5432/account_registry url: r2dbc:postgresql://localhost:5432/account_registry
password: password password: password
kafka:
bootstrap-servers: localhost:9091
--- ---
########################## ##########################
@@ -52,6 +57,8 @@ spring:
r2dbc: r2dbc:
url: r2dbc:postgresql://PostgreSQL:5432/account_registry url: r2dbc:postgresql://PostgreSQL:5432/account_registry
password: password password: password
kafka:
bootstrap-servers: kafka:9092
--- ---
############################## ##############################