snark/examples/document/build.gradle.kts

33 lines
721 B
Plaintext
Raw Permalink Normal View History

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 {
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
}
application {
2024-09-28 15:02:58 +03:00
mainClass.set("center.sciprog.snark.documents.MainKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment", "-Xmx200M")
2024-04-16 17:46:00 +03:00
}