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

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists