spc-site/build.gradle.kts

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-04-23 10:48:53 +03:00
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
plugins {
id("ru.mipt.npm.gradle.project")
application
id("ru.mipt.npm.gradle.jvm")
}
group = "ru.mipt.npm"
version = "0.0.1"
application {
mainClass.set("ru.mipt.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
dependencies {
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
2022-04-23 10:59:05 +03:00
implementation("org.jetbrains.kotlinx:kotlinx-html:0.7.3")
2022-04-23 10:48:53 +03:00
implementation("io.ktor:ktor-server-html-builder-jvm:$ktor_version")
2022-04-23 10:59:05 +03:00
implementation("org.jetbrains:kotlin-css-jvm")
2022-04-23 10:48:53 +03:00
implementation("io.ktor:ktor-server-host-common-jvm:$ktor_version")
implementation("io.ktor:ktor-server-status-pages-jvm:$ktor_version")
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("space.kscience:dataforge-data:0.5.2")
2022-04-23 10:59:05 +03:00
implementation("org.jetbrains:markdown:0.3.1")
2022-04-23 10:48:53 +03:00
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}
kotlin {
explicitApi = org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Disabled
}