2024-08-14 11:52:05 +02:00
|
|
|
val ktor_version: String = "2.3.12"
|
|
|
|
val kotlin_version: String = "2.0.10"
|
|
|
|
val logback_version: String = "1.5.6"
|
2022-12-23 23:14:36 +01:00
|
|
|
|
|
|
|
plugins {
|
2024-08-14 11:52:05 +02:00
|
|
|
kotlin("jvm") version "2.0.10"
|
|
|
|
id("io.ktor.plugin") version "2.3.12"
|
|
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.10"
|
2022-12-23 23:14:36 +01:00
|
|
|
application
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "de.steamwar"
|
|
|
|
version = "0.0.1"
|
|
|
|
application {
|
|
|
|
mainClass.set("de.steamwar.ApplicationKt")
|
|
|
|
|
|
|
|
val isDevelopment: Boolean = project.ext.has("development")
|
|
|
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
2023-12-23 21:16:05 +01:00
|
|
|
ktor {
|
|
|
|
fatJar {
|
|
|
|
archiveFileName.set("api.jar")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-23 23:14:36 +01:00
|
|
|
dependencies {
|
|
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
2023-09-06 23:07:32 +02:00
|
|
|
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-cors-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version")
|
2023-11-03 20:30:30 +01:00
|
|
|
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
|
2023-09-06 23:07:32 +02:00
|
|
|
implementation("io.ktor:ktor-server-host-common-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-request-validation:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-auth:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-auth-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-auth-ldap-jvm:$ktor_version")
|
2023-11-03 20:30:30 +01:00
|
|
|
implementation("io.ktor:ktor-client-core-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-client-java:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-client-auth:$ktor_version")
|
2022-12-23 23:14:36 +01:00
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
2023-12-23 18:15:07 +01:00
|
|
|
implementation("com.mysql:mysql-connector-j:8.2.0")
|
2022-12-23 23:14:36 +01:00
|
|
|
implementation(project(":CommonCore"))
|
|
|
|
implementation("org.bspfsystems:yamlconfiguration:1.3.0")
|
2023-01-21 19:45:04 +01:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.4.1")
|
2023-09-06 23:07:32 +02:00
|
|
|
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
|
|
|
|
implementation("io.ktor:ktor-server-rate-limit:$ktor_version")
|
2022-12-23 23:14:36 +01:00
|
|
|
}
|