From 4147136acb7b4988dc7a6145c8184df87d881781 Mon Sep 17 00:00:00 2001 From: minri2 <2275045670@qq.com> Date: Thu, 15 Feb 2024 13:36:35 +0800 Subject: [PATCH] java 8 --- build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 4c4f708..3103e0d 100644 --- a/build.gradle +++ b/build.gradle @@ -5,14 +5,14 @@ group = 'com.github.MinRi2' sourceSets.main.java.srcDirs = ["src"] java{ - targetCompatibility = 16 + targetCompatibility = 8 sourceCompatibility = 16 } ext{ //the build number that this mod is made for mindustryVersion = 'v146' - minModCoreVersion = "e5020ddbf4" + minModCoreVersion = "6c8bac46e8" jabelVersion = "93fde537c7" //windows sucks @@ -24,6 +24,7 @@ ext{ allprojects{ tasks.withType(JavaCompile){ + options.compilerArgs.addAll(['--release', '8']) options.encoding('UTF-8') } } @@ -37,7 +38,7 @@ repositories{ dependencies{ annotationProcessor project(':annotation') -// annotationProcessor "com.github.Anuken:jabel:$jabelVersion" + annotationProcessor "com.github.Anuken:jabel:$jabelVersion" compileOnly project(":annotation") compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"