From 47fcf7b32deffed8fe46d93b1c8710658ebaadec Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 20 Jun 2021 21:05:00 +0200 Subject: [PATCH] Move the versions of dependencies to the gradle.properties file and introduce jvm arguments & gradle properties definitions --- build.gradle.kts | 3 ++- gradle.properties | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index a193a4e..d1decfa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,8 @@ repositories { dependencies { implementation(kotlin("stdlib-js")) - implementation("org.jetbrains.kotlinx:kotlinx-html:0.7.3") + implementation("org.jetbrains.kotlinx:kotlinx-html:${rootProject.property("kotlinx-html_version")}") + implementation("io.ktor:ktor-client-core:${rootProject.property("ktor_version")}") } val outputDirectory = file("$rootDir/compiledOutput") diff --git a/gradle.properties b/gradle.properties index e69de29..59dae48 100644 --- a/gradle.properties +++ b/gradle.properties @@ -0,0 +1,11 @@ +org.gradle.daemon=false +kotlin.code.style=official +org.gradle.jvmargs=-Xmx2G -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch +kotlin.incremental=true +org.gradle.caching=true +org.gradle.parallel=true +org.gradle.unsafe.configuration-cache=on +org.gradle.vfs.watch=true + +kotlinx-html_version=0.7.3 +ktor_version=1.6.0 \ No newline at end of file