44 lines
1.5 KiB
Kotlin
44 lines
1.5 KiB
Kotlin
import sun.jvmstat.monitor.MonitoredVmUtil.mainClass
|
|
|
|
val kotlin_version: String by project
|
|
val logback_version: String by project
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.3.0"
|
|
id("io.ktor.plugin") version "3.4.2"
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.3.0"
|
|
}
|
|
|
|
group = "com.bbitcn"
|
|
version = "0.0.6"
|
|
|
|
application {
|
|
mainClass = "io.ktor.server.netty.EngineMain"
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-server-cors")
|
|
implementation("io.ktor:ktor-server-default-headers")
|
|
implementation("io.ktor:ktor-server-core")
|
|
implementation("io.ktor:ktor-server-host-common")
|
|
implementation("io.ktor:ktor-server-status-pages")
|
|
implementation("io.ktor:ktor-server-compression")
|
|
implementation("io.ktor:ktor-server-caching-headers")
|
|
implementation("io.ktor:ktor-server-content-negotiation")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json")
|
|
implementation("io.ktor:ktor-server-freemarker")
|
|
implementation("io.ktor:ktor-client-core")
|
|
implementation("io.ktor:ktor-client-cio")
|
|
implementation("io.ktor:ktor-client-content-negotiation")
|
|
implementation("io.ktor:ktor-client-logging")
|
|
implementation("io.ktor:ktor-server-netty")
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
implementation("io.ktor:ktor-server-config-yaml")
|
|
testImplementation("io.ktor:ktor-server-test-host")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
}
|