From 37a6b42f74c9a6299423f778b0afd86600966981 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:43:12 -0300 Subject: [PATCH] Set gradle java src & target compat = VERSION_11 This change sets java source and class generation version targets to 11. The Bisq distribution is built with JDK 11, but source target has remained at 1.10. Upgrading allows devs to use some Java syntax features available @since 11, and it might help anyone building the src avoid confusion over which JDK they should use (minimum is JDK 11). See https://docs.gradle.org/current/userguide/java_plugin.html#sec:java-extension --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f23ecc14e4d..74b35697eca 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,8 @@ configure(subprojects) { apply plugin: 'java' apply plugin: 'com.google.osdetector' - sourceCompatibility = 1.10 + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 ext { // in alphabetical order bcVersion = '1.63'