- start migrating tile-server to use Ktor
- start splitting up Kafka processor and tile-server to two subprojects
This commit is contained in:
parent
ae9ecc24f5
commit
8a90c4fb5e
22 changed files with 735 additions and 876 deletions
|
|
@ -9,11 +9,7 @@ plugins {
|
|||
}
|
||||
|
||||
|
||||
description = """
|
||||
Receive raw Factorio Events from Kafka and process them into targeted topics or data formats.
|
||||
|
||||
Factorio events -> Mod -> Kafka -> ***Factorio Events Processor*** -> processed events
|
||||
""".trimIndent()
|
||||
description = "serves Kafkatorio content over the web"
|
||||
|
||||
val projectId: String by project.extra
|
||||
|
||||
|
|
@ -39,19 +35,44 @@ dependencies {
|
|||
implementation(libs.bundles.http4k)
|
||||
implementation(libs.http4k.format.kotlinx)
|
||||
|
||||
|
||||
implementation(libs.bundles.logging)
|
||||
|
||||
implementation(libs.scrimage.core)
|
||||
|
||||
implementation(libs.okio.core)
|
||||
|
||||
implementation(libs.ktor.network)
|
||||
implementation(libs.ktor.networkTls)
|
||||
|
||||
//<editor-fold desc="Ktor">
|
||||
implementation(libs.ktorSerialization.kotlinxJson)
|
||||
|
||||
with(libs.ktorServer) {
|
||||
implementation(core)
|
||||
implementation(callId)
|
||||
implementation(callLogging)
|
||||
implementation(contentNegotiaion)
|
||||
implementation(cio)
|
||||
// implementation(netty)
|
||||
implementation(autoHeadResponse)
|
||||
implementation(partialContent)
|
||||
implementation(resources)
|
||||
implementation(statusPages)
|
||||
implementation(websockets)
|
||||
implementation(compression)
|
||||
}
|
||||
|
||||
with(libs.ktorNetwork) {
|
||||
implementation(core)
|
||||
implementation(tls)
|
||||
}
|
||||
|
||||
//</editor-fold>
|
||||
|
||||
|
||||
implementation(libs.simpleSyslogParser)
|
||||
|
||||
implementation(libs.kafka.kotkaStreams) {
|
||||
isChanging = true
|
||||
isChanging = false
|
||||
}
|
||||
|
||||
implementation(libs.bundles.hoplite)
|
||||
|
|
@ -59,7 +80,8 @@ dependencies {
|
|||
|
||||
|
||||
application {
|
||||
mainClass.set("dev.adamko.kafkatorio.processor.EventProcessorKt")
|
||||
// mainClass.set("dev.adamko.kafkatorio.processor.EventProcessorKt")
|
||||
mainClass.set("dev.adamko.kafkatorio.server.KafkatorioEventsServerKt")
|
||||
|
||||
// applicationDefaultJvmArgs += listOf(
|
||||
// "-Dcom.sun.management.jmxremote.port=9186",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue