34 lines
1 KiB
Text
34 lines
1 KiB
Text
|
val ktor_version: String by project
|
||
|
val kotlin_version: String by project
|
||
|
val logback_version: String by project
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "1.9.10"
|
||
|
id("io.ktor.plugin") version "2.3.4"
|
||
|
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
|
||
|
}
|
||
|
|
||
|
group = "io.github.wulkanowy"
|
||
|
version = "0.1.0"
|
||
|
|
||
|
application {
|
||
|
mainClass.set("io.github.wulkanowy.ApplicationKt")
|
||
|
|
||
|
val isDevelopment: Boolean = project.ext.has("development")
|
||
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation("io.ktor:ktor-server-core-jvm")
|
||
|
implementation("io.ktor:ktor-server-content-negotiation-jvm")
|
||
|
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
|
||
|
implementation("io.ktor:ktor-server-netty-jvm")
|
||
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
||
|
testImplementation("io.ktor:ktor-server-tests-jvm")
|
||
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
||
|
}
|