summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar modmuss502021-05-22 10:23:30 +0100
committerGravatar GitHub2021-05-22 10:23:30 +0100
commit63e2616c4017633d231fb9ae369fdfd57d2adaca (patch)
tree6e96d68441762b6654b303280661949f3672bc6c /build.gradle
parentBump version (diff)
downloadenigma-63e2616c4017633d231fb9ae369fdfd57d2adaca.tar.gz
enigma-63e2616c4017633d231fb9ae369fdfd57d2adaca.tar.xz
enigma-63e2616c4017633d231fb9ae369fdfd57d2adaca.zip
Update to Java 16 (#390)
* Java 16 * Cleanup * Set CFR as the default decompiler, it seems to handle j16 stuff better * Update build.gradle Co-authored-by: YanisBft <doublecraft.official@gmail.com> * Update proguard, disable broken tests Co-authored-by: YanisBft <doublecraft.official@gmail.com>
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 4 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index b8a9feb7..d5c0b1ff 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,8 +6,8 @@ subprojects {
6 apply plugin: 'java' 6 apply plugin: 'java'
7 apply plugin: 'maven-publish' 7 apply plugin: 'maven-publish'
8 8
9 sourceCompatibility = 1.8 9 sourceCompatibility = JavaVersion.VERSION_16
10 targetCompatibility = 1.8 10 targetCompatibility = JavaVersion.VERSION_16
11 11
12 repositories { 12 repositories {
13 mavenLocal() 13 mavenLocal()
@@ -40,9 +40,7 @@ subprojects {
40 tasks.withType(JavaCompile).configureEach { 40 tasks.withType(JavaCompile).configureEach {
41 it.options.encoding = "UTF-8" 41 it.options.encoding = "UTF-8"
42 42
43 if (JavaVersion.current().isJava9Compatible()) { 43 it.options.release = 16
44 it.options.release = 8
45 }
46 } 44 }
47 45
48 publishing { 46 publishing {
@@ -88,4 +86,4 @@ task checkVersion {
88 } 86 }
89} 87}
90 88
91publish.mustRunAfter checkVersion \ No newline at end of file 89publish.mustRunAfter checkVersion