From c74e2ee62b618167d494c6714348ee23c6285a71 Mon Sep 17 00:00:00 2001 From: zp-wmhx Date: Fri, 20 Jun 2025 12:01:50 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=94=A8gradle=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=BC=BA=E5=88=B6=E4=BD=BF=E7=94=A8jdk1.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zp-wmhx --- java-all-call-graph/build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/java-all-call-graph/build.gradle b/java-all-call-graph/build.gradle index 333f555..50add03 100644 --- a/java-all-call-graph/build.gradle +++ b/java-all-call-graph/build.gradle @@ -9,8 +9,8 @@ group 'com.github.adrninistrator' version = "3.2.1" def projectName = "java-all-call-graph" description = "${projectName}" -sourceCompatibility = 1.8 -targetCompatibility = 1.8 +def sourceCompatibility = 1.8 +def targetCompatibility = 1.8 def jar_output_dir = "jar_output_dir" def defaultEncoding = 'UTF-8' @@ -129,6 +129,11 @@ processTestResources { setDuplicatesStrategy(DuplicatesStrategy.INCLUDE) } +tasks.withType(JavaCompile).configureEach { + sourceCompatibility = '${sourceCompatibility}' + targetCompatibility = '${targetCompatibility}' +} + tasks.register('createProject') { doFirst { sourceSets*.java.srcDirs*.each { it.mkdirs() } -- Gitee