From 63e2616c4017633d231fb9ae369fdfd57d2adaca Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 22 May 2021 10:23:30 +0100 Subject: 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 * Update proguard, disable broken tests Co-authored-by: YanisBft --- build.gradle | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index b8a9feb..d5c0b1f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ subprojects { apply plugin: 'java' apply plugin: 'maven-publish' - sourceCompatibility = 1.8 - targetCompatibility = 1.8 + sourceCompatibility = JavaVersion.VERSION_16 + targetCompatibility = JavaVersion.VERSION_16 repositories { mavenLocal() @@ -40,9 +40,7 @@ subprojects { tasks.withType(JavaCompile).configureEach { it.options.encoding = "UTF-8" - if (JavaVersion.current().isJava9Compatible()) { - it.options.release = 8 - } + it.options.release = 16 } publishing { @@ -88,4 +86,4 @@ task checkVersion { } } -publish.mustRunAfter checkVersion \ No newline at end of file +publish.mustRunAfter checkVersion -- cgit v1.2.3