mirror of
https://github.com/jlengrand/ktor-sample-coolify.git
synced 2026-03-10 00:21:17 +00:00
32 lines
844 B
Kotlin
32 lines
844 B
Kotlin
|
|
val kotlin_version: String by project
|
|
val logback_version: String by project
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.0.0"
|
|
id("io.ktor.plugin") version "2.3.11"
|
|
}
|
|
|
|
group = "quest.lengrand"
|
|
version = "0.0.1"
|
|
|
|
application {
|
|
mainClass.set("io.ktor.server.netty.EngineMain")
|
|
|
|
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-netty-jvm")
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
implementation("io.ktor:ktor-server-config-yaml")
|
|
testImplementation("io.ktor:ktor-server-tests-jvm")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
}
|