From c9f20a06d002567ca4d4b24c446c0ab384d8f79d Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 10 Nov 2021 09:00:24 +0000 Subject: Fix java compile configuration --- spark-velocity4/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'spark-velocity4') diff --git a/spark-velocity4/build.gradle b/spark-velocity4/build.gradle index 8c70779..00c837d 100644 --- a/spark-velocity4/build.gradle +++ b/spark-velocity4/build.gradle @@ -3,10 +3,11 @@ plugins { id 'com.github.johnrengelman.shadow' version '7.0.0' } -compileJava { - // override, compile targeting J11 - options.compilerArgs.clear() - options.compilerArgs.addAll(['--release', '11']) +java { + toolchain { + // override, compile targeting J11 + languageVersion = JavaLanguageVersion.of(11) + } } dependencies { -- cgit