Files
OpenMMO/server.game/build.gradle.kts
T
Fiereuandgithub-actions[bot] 9089bd00ac chore: remove unused files (#10)
* chore: remove unused files

* chore(style): spotlessApply

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-12 14:12:47 +02:00

47 lines
1.1 KiB
Kotlin

plugins {
application
id("buildsrc.convention.kotlin-jvm")
id("buildsrc.convention.spotless")
id("buildsrc.convention.sonarlint")
id("buildsrc.common.keys")
alias(libs.plugins.ksp)
}
group = "de.fiereu.openmmo"
version = "0.1.0"
application { mainClass.set("de.fiereu.openmmo.server.game.MainKt") }
dependencies {
api(project(":network"))
api(project(":protocols.game"))
api(project(":common"))
api(project(":maps"))
implementation(libs.dagger)
ksp(libs.dagger.compiler)
implementation(libs.typesafe.config)
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlin.logging)
implementation(libs.logback)
testImplementation(libs.bundles.kotest)
testImplementation(libs.kotlinx.coroutines.test)
}
tasks.named<JavaExec>("run") {
listOf(
"OPENMMO_SESSION_SECRET",
"GAME_DB_PORT",
"GAME_DB_NAME",
"GAME_DB_USER",
"GAME_DB_PASSWORD")
.forEach { key -> env.fetchOrNull(key)?.let { environment(key, it) } }
}
listOf("classes", "processResources").forEach { taskName ->
tasks.named(taskName) { dependsOn("copyPublicKeyGame", "copyPrivateKeyGame") }
}