aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle5
-rw-r--r--spark-velocity2/build.gradle7
2 files changed, 8 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 0e9389d..1812f28 100644
--- a/build.gradle
+++ b/build.gradle
@@ -17,8 +17,9 @@ subprojects {
pluginDescription = 'spark is a performance profiling plugin/mod for Minecraft clients, servers and proxies.'
}
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
+ compileJava {
+ options.compilerArgs.addAll(['--release', '8'])
+ }
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
diff --git a/spark-velocity2/build.gradle b/spark-velocity2/build.gradle
index 184c2a3..ec971e5 100644
--- a/spark-velocity2/build.gradle
+++ b/spark-velocity2/build.gradle
@@ -3,8 +3,11 @@ plugins {
id 'com.github.johnrengelman.shadow' version '4.0.1'
}
-sourceCompatibility = 11
-targetCompatibility = 11
+compileJava {
+ // override, compile targeting J11
+ options.compilerArgs.clear()
+ options.compilerArgs.addAll(['--release', '11'])
+}
dependencies {
compile project(':spark-common')