2024-04-16 17:46:00 +03:00
|
|
|
plugins {
|
|
|
|
id("space.kscience.gradle.mpp")
|
2024-09-28 15:02:58 +03:00
|
|
|
alias(spclibs.plugins.ktor)
|
2024-04-16 17:46:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
kscience {
|
2024-09-28 11:48:25 +03:00
|
|
|
jvm{
|
|
|
|
withJava()
|
|
|
|
}
|
2024-04-16 17:46:00 +03:00
|
|
|
useContextReceivers()
|
2024-09-28 15:02:58 +03:00
|
|
|
useKtor()
|
2024-04-16 17:46:00 +03:00
|
|
|
|
|
|
|
jvmMain {
|
|
|
|
implementation(projects.snarkKtor)
|
2024-09-28 15:02:58 +03:00
|
|
|
implementation("io.ktor:ktor-server-cio")
|
2024-04-16 17:46:00 +03:00
|
|
|
implementation(spclibs.logback.classic)
|
|
|
|
}
|
|
|
|
|
2024-09-28 15:02:58 +03:00
|
|
|
jvmTest {
|
|
|
|
implementation("io.ktor:ktor-server-tests")
|
2024-04-16 17:46:00 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
explicitApi = org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Disabled
|
2024-09-28 11:48:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2024-09-28 15:02:58 +03:00
|
|
|
mainClass.set("center.sciprog.snark.documents.MainKt")
|
2024-09-28 11:48:25 +03:00
|
|
|
|
|
|
|
val isDevelopment: Boolean = project.ext.has("development")
|
|
|
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment", "-Xmx200M")
|
2024-04-16 17:46:00 +03:00
|
|
|
}
|