From e92975416133b34cb6e03359223c3c390e591c7f Mon Sep 17 00:00:00 2001 From: NotMyWing Date: Tue, 6 Jun 2023 13:37:50 +1100 Subject: [PATCH] Update Gradle config and Buildscripts --- build.gradle | 16 +++++++++------- gradle.properties | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index dc3fdd1..44b481a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1685860463 +//version: 1685933053 /* * DO NOT CHANGE THIS FILE! * Also, you may replace this file at any time if there is an update available. @@ -499,7 +499,12 @@ processResources { ) } - rename '(.+_at.cfg)', 'META-INF/$1' + if (accessTransformersFile) { + String[] ats = accessTransformersFile.split(',') + ats.each { at -> + rename "(${at})", 'META-INF/$1' + } + } } // Automatically generate a mixin json file if it does not already exist @@ -535,7 +540,6 @@ tasks.register('generateAssets') { "dependencies": [] }] """ - mcmodInfoFile } // mixins.{modid}.json @@ -560,10 +564,8 @@ tasks.register('generateAssets') { } } -if (usesMixins.toBoolean()) { - tasks.named('processResources').configure { - dependsOn('generateAssets') - } +tasks.named('processResources').configure { + dependsOn('generateAssets') } jar { diff --git a/gradle.properties b/gradle.properties index 0c3f988..8f5fff3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ modGroup = co.neeve.nonetherportals # Version of your mod. # This field can be left empty if you want your mod's version to be determined by the latest git tag instead. -modVersion = 1.0.0 +modVersion = # The name of your jar when you produce builds, not including any versioning info modArchivesBaseName = nonetherportals