From 68ae0b83b9d9e4bb9a2764e83661635947bcdf3e Mon Sep 17 00:00:00 2001 From: Luan Date: Wed, 18 Mar 2020 14:49:49 +0800 Subject: [PATCH] Allow iceberg build with Java 8 or above version --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index fd41d6d290b9..1c71d9f5c143 100644 --- a/build.gradle +++ b/build.gradle @@ -40,8 +40,8 @@ plugins { id 'com.palantir.consistent-versions' version '1.9.2' } -if (JavaVersion.current() != JavaVersion.VERSION_1_8) { - throw new GradleException("This build must be run with Java 8") +if (!JavaVersion.current().java8Compatible) { + throw new GradleException("This build must be run with Java 8 or above version") } allprojects {