From 94279c4777932e3c05110b13dda032a263f8dfc6 Mon Sep 17 00:00:00 2001 From: halibobo1205 Date: Tue, 29 Oct 2024 16:50:49 +0800 Subject: [PATCH] feat(jdk17): adjust target compatibility for compile --- build.gradle | 2 +- common/build.gradle | 2 -- crypto/build.gradle | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 8db08f4fe7e..ff555017557 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ subprojects { apply plugin: "maven-publish" sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.current() [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' diff --git a/common/build.gradle b/common/build.gradle index efd966897a4..9442baf4c2a 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -4,8 +4,6 @@ plugins { version '1.0.0' -sourceCompatibility = 1.8 - // Dependency versions // --------------------------------------- def leveldbVersion = "1.8" diff --git a/crypto/build.gradle b/crypto/build.gradle index 82814af49e6..699973e0173 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -4,8 +4,6 @@ plugins { version '1.0.0' -sourceCompatibility = 1.8 - repositories { mavenCentral() }