Update build.gradle.kts

This commit is contained in:
bluefireoly
2020-08-27 20:50:17 +02:00
parent 67aab70a66
commit ca15f3bdcb

View File

@@ -1,9 +1,9 @@
object BuildConstants { /**
* PROJECT
*/
val JVM_VERSION = JavaVersion.VERSION_1_8 group = "net.axay"
const val JVM_VERSION_STRING = "1.8" version = "1.16.1"
}
plugins { plugins {
java java
@@ -11,32 +11,41 @@ plugins {
maven maven
} }
group = "net.axay" /**
version = "1.16.1" * DEPENDENCY MANAGEMENT
*/
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal() // for retrieving the local available binaries of spigot (use the BuildTools)
} }
dependencies { dependencies {
// KOTLIN // KOTLIN
implementation(kotlin("stdlib-jdk8")) implementation(kotlin("stdlib"))
// SPIGOT // SPIGOT
compileOnly("org.spigotmc", "spigot", "1.16.1-R0.1-SNAPSHOT") compileOnly("org.spigotmc", "spigot", "1.16.1-R0.1-SNAPSHOT")
testCompileOnly("org.spigotmc", "spigot", "1.16.1-R0.1-SNAPSHOT")
} }
configure<JavaPluginConvention> { /**
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 { tasks {
compileKotlin { compileKotlin {
kotlinOptions.jvmTarget = BuildConstants.JVM_VERSION_STRING kotlinOptions.jvmTarget = BuildConstants.JVM_VERSION_STRING
} }
compileTestKotlin {
kotlinOptions.jvmTarget = BuildConstants.JVM_VERSION_STRING
}
} }