35 lines
742 B
Plaintext
35 lines
742 B
Plaintext
plugins {
|
|
alias(libs.plugins.kotlinJvm)
|
|
alias(libs.plugins.ktor)
|
|
application
|
|
}
|
|
|
|
group = "net.sergeych.toread"
|
|
version = "1.0.0"
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set("net.sergeych.toread.ApplicationKt")
|
|
|
|
val isDevelopment: Boolean = project.ext.has("development")
|
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(projects.shared)
|
|
implementation(libs.logback)
|
|
implementation(libs.ktor.serverCore)
|
|
implementation(libs.ktor.serverNetty)
|
|
testImplementation(libs.ktor.serverTestHost)
|
|
testImplementation(libs.kotlin.testJunit)
|
|
}
|