42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
|
val kotlin_version: String by project
|
||
|
val logback_version: String by project
|
||
|
val kotlinx_html_version: String by project
|
||
|
val ktor_version: String by project
|
||
|
|
||
|
|
||
|
application {
|
||
|
mainClass.set("io.ktor.server.netty.EngineMain")
|
||
|
|
||
|
val isDevelopment: Boolean = project.ext.has("development")
|
||
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
||
|
}
|
||
|
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "2.0.0"
|
||
|
id("io.ktor.plugin") version "2.3.12"
|
||
|
}
|
||
|
|
||
|
group = "observer.nelle"
|
||
|
version = "1.0-SNAPSHOT"
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") }
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation("io.ktor:ktor-server-status-pages:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-core-jvm")
|
||
|
implementation("io.ktor:ktor-server-html-builder-jvm")
|
||
|
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:$kotlinx_html_version")
|
||
|
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.129-kotlin-1.4.20")
|
||
|
implementation("io.ktor:ktor-server-sessions-jvm")
|
||
|
implementation("io.ktor:ktor-server-netty-jvm")
|
||
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
||
|
implementation("io.ktor:ktor-server-config-yaml")
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
jvmToolchain(21)
|
||
|
}
|