From 7940687df2d6f5e66a0fc462e9e2ae3baf994fac Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 7 May 2022 16:49:07 +0100 Subject: [PATCH] Get this building in the year of our lord 2022 - Force the license check to use 2020 - Tell Proguard to ignore some annotations --- build.gradle | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 2c93873ee..20450fb13 100644 --- a/build.gradle +++ b/build.gradle @@ -52,14 +52,6 @@ repositories { name "Charset" artifactPattern "https://asie.pl/files/mods/Charset/LibOnly/[module]-[revision](-[classifier]).[ext]" } - maven { - name "Amadornes" - url "https://maven.amadornes.com/" - } - maven { - name "CraftTweaker" - url "https://maven.blamejared.com/" - } } configurations { @@ -144,6 +136,9 @@ task proguard(type: ProGuardTask, dependsOn: jar) { // We want to avoid as much obfuscation as possible. We're only doing this to shrink code size. dontobfuscate; dontoptimize; keepattributes; keepparameternames + // Tell ProGuard to shut up + dontwarn 'org.checkerframework.**' + // Proguard will remove directories by default, but that breaks JarMount. keepdirectories 'assets/computercraft/lua**' @@ -265,7 +260,7 @@ license { mapping("java", "SLASHSTAR_STYLE") strictCheck true - ext.year = Calendar.getInstance().get(Calendar.YEAR) + ext.year = 2020 } [licenseMain, licenseFormatMain].forEach {