fix build for documents
This commit is contained in:
parent
81f9997618
commit
3adadd5bd7
@ -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")
|
||||
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")
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user