idiomatic-kotlin-course/build.gradle.kts

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-11-15 10:02:23 +03:00
plugins{
2024-12-12 20:50:35 +03:00
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.ktor)
2024-11-15 10:02:23 +03:00
}
2024-12-12 20:50:35 +03:00
group = "center.sciprog.demo"
version = "0.0.1"
application {
mainClass.set("serverMainKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
2024-11-15 10:02:23 +03:00
}
2024-12-12 20:50:35 +03:00
repositories {
mavenCentral()
}
2024-11-15 10:02:23 +03:00
dependencies {
2024-12-12 20:50:35 +03:00
implementation(libs.kotlinx.html)
2024-12-20 12:07:15 +03:00
// implementation(libs.kotlin.css)
2024-12-12 20:50:35 +03:00
implementation(libs.logback.classic)
implementation(libs.kotlinx.datetime)
2024-11-15 10:02:23 +03:00
2024-12-12 20:50:35 +03:00
implementation(libs.ktor.server.core)
implementation(libs.ktor.server.websockets)
implementation(libs.ktor.server.html.builder)
implementation(libs.ktor.server.call.logging)
implementation(libs.ktor.server.cors)
implementation(libs.ktor.server.host.common)
implementation(libs.ktor.server.cio)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.cio)
implementation(libs.ktor.client.websockets)
// implementation("io.ktor:ktor-client-core:$ktorVersion")
// implementation("io.ktor:ktor-client-cio:$ktorVersion")
// implementation("io.ktor:ktor-client-core-jvm:3.0.1")
// implementation("io.ktor:ktor-client-apache:3.0.1")
testImplementation(libs.ktor.server.test.host)
testImplementation(libs.kotlin.test.junit)
}