From ca15f3bdcb75a9fcf0ced47d6d9c18c05167b360 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Thu, 27 Aug 2020 20:50:17 +0200 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 479f2f10..7f9fb809 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,9 @@ -object BuildConstants { +/** + * PROJECT + */ - val JVM_VERSION = JavaVersion.VERSION_1_8 - const val JVM_VERSION_STRING = "1.8" - -} +group = "net.axay" +version = "1.16.1" plugins { java @@ -11,32 +11,41 @@ plugins { maven } -group = "net.axay" -version = "1.16.1" +/** + * DEPENDENCY MANAGEMENT + */ repositories { mavenCentral() - mavenLocal() + mavenLocal() // for retrieving the local available binaries of spigot (use the BuildTools) } dependencies { // KOTLIN - implementation(kotlin("stdlib-jdk8")) + implementation(kotlin("stdlib")) // SPIGOT compileOnly("org.spigotmc", "spigot", "1.16.1-R0.1-SNAPSHOT") + testCompileOnly("org.spigotmc", "spigot", "1.16.1-R0.1-SNAPSHOT") } -configure { - sourceCompatibility = BuildConstants.JVM_VERSION +/** + * BUILD + */ + +object BuildConstants { + + val JVM_VERSION = JavaVersion.VERSION_1_8 + const val JVM_VERSION_STRING = "1.8" + } + +java.sourceCompatibility = BuildConstants.JVM_VERSION + tasks { compileKotlin { kotlinOptions.jvmTarget = BuildConstants.JVM_VERSION_STRING } - compileTestKotlin { - kotlinOptions.jvmTarget = BuildConstants.JVM_VERSION_STRING - } } \ No newline at end of file