From 3adadd5bd7a9df5fc6eaf44bddd1f40d243357e6 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 28 Sep 2024 15:02:58 +0300 Subject: [PATCH] fix build for documents --- examples/document/build.gradle.kts | 14 ++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/examples/document/build.gradle.kts b/examples/document/build.gradle.kts index 7e5c1b5..7cfdc5e 100644 --- a/examples/document/build.gradle.kts +++ b/examples/document/build.gradle.kts @@ -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") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e1adfb4..1e2fbf0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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