From 5e6465e8f3cf957270fd3e030bd2381c484f0b0c Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 23 Aug 2020 12:08:09 -0400 Subject: [PATCH] nope, --release 8 is broken --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8256e83e15..20e2b7f0dd 100644 --- a/build.gradle +++ b/build.gradle @@ -183,7 +183,9 @@ allprojects{ //compile with java 8 compatibility for everything except the annotati project configure(subprojects - project(":annotations")){ tasks.withType(JavaCompile){ - options.release = 8 + if(JavaVersion.current() != JavaVersion.VERSION_1_8){ + options.compilerArgs.addAll(['--release', '8']) + } } tasks.withType(Javadoc){