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