fix build for documents

This commit is contained in:
Alexander Nozik 2024-09-28 15:02:58 +03:00
parent 81f9997618
commit 3adadd5bd7
2 changed files with 7 additions and 9 deletions

View File

@ -1,25 +1,23 @@
plugins {
id("space.kscience.gradle.mpp")
application
alias(spclibs.plugins.ktor)
}
val snarkVersion: String by extra
val ktorVersion = space.kscience.gradle.KScienceVersions.ktorVersion
kscience {
jvm{
withJava()
}
useContextReceivers()
useKtor()
jvmMain {
implementation(projects.snarkKtor)
implementation("io.ktor:ktor-server-cio:$ktorVersion")
implementation("io.ktor:ktor-server-cio")
implementation(spclibs.logback.classic)
}
jvmTest{
implementation("io.ktor:ktor-server-tests:$ktorVersion")
jvmTest {
implementation("io.ktor:ktor-server-tests")
}
}
@ -28,7 +26,7 @@ kotlin {
}
application {
mainClass.set("center.sciprog.snark.documents.Mainkt")
mainClass.set("center.sciprog.snark.documents.MainKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment", "-Xmx200M")

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists