42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
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")
|
|
}
|
|
|
|
repositories {
|
|
maven("https://maven.pkg.jetbrains.space/public/p/ktor/eap")
|
|
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.3")
|
|
implementation("io.ktor:ktor-server-html-builder-jvm:$ktor_version")
|
|
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.129-kotlin-1.4.20")
|
|
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")
|
|
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
|
|
} |