Add Backend to Monorepo

This commit is contained in:
2024-08-18 11:15:54 +02:00
parent b8e50dc139
commit fd7fe8c305
37 changed files with 2703 additions and 26 deletions
+61
View File
@@ -0,0 +1,61 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2024 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
steamwar.kotlin
id("io.ktor.plugin") version "2.3.12"
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.10"
application
}
application {
mainClass.set("de.steamwar.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
ktor {
fatJar {
archiveFileName.set("api.jar")
}
}
dependencies {
implementation(libs.logback)
implementation(libs.ktor)
implementation(libs.ktorContentNegotiation)
implementation(libs.ktorCors)
implementation(libs.ktorSerialization)
implementation(libs.ktorNetty)
implementation(libs.ktorHost)
implementation(libs.ktorRequestValidation)
implementation(libs.ktorAuth)
implementation(libs.ktorAuthJvm)
implementation(libs.ktorAuthLdap)
implementation(libs.ktorClientCore)
implementation(libs.ktorClientJava)
implementation(libs.ktorClientContentNegotiation)
implementation(libs.ktorClientAuth)
implementation(libs.mysql)
implementation(project(":CommonCore"))
implementation(libs.yamlconfig)
implementation(libs.kotlinxSerializationCbor)
implementation(libs.ktorRateLimit)
}