New Gradle module :server (Kotlin/JVM) with Ktor 3.1.2 framework, configured as an embedded Netty HTTP server. server/src/main/kotlin/de/krisenvorrat/server/: - Application.kt: entry point using EngineMain for HOCON config - plugins/Routing.kt: GET /health endpoint returning 200 OK - plugins/Serialization.kt: ContentNegotiation with kotlinx.json Configuration: - application.conf (HOCON): host 0.0.0.0, port 8080, module reference - logback.xml: SLF4J/Logback console logging Build config: - server/build.gradle.kts: Ktor plugin with Fat JAR (server.jar) - libs.versions.toml: Ktor 3.1.2, Logback 1.5.18 dependencies - settings.gradle.kts: include(:server) - :server depends on :shared for common DTO models Tests: 2 tests (health endpoint, 404 on unknown route) via Ktor testApplication. Closes #40
25 lines
574 B
Text
25 lines
574 B
Text
pluginManagement {
|
|
repositories {
|
|
google {
|
|
content {
|
|
includeGroupByRegex("com\\.android.*")
|
|
includeGroupByRegex("com\\.google.*")
|
|
includeGroupByRegex("androidx.*")
|
|
}
|
|
}
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
rootProject.name = "krisenvorrat"
|
|
include(":app")
|
|
include(":shared")
|
|
include(":server")
|