From 564b44e54f38889698b36cff1c8d352c002ca43b Mon Sep 17 00:00:00 2001 From: Hileb <107909747+Ecdcaeb@users.noreply.github.com> Date: Fri, 3 May 2024 09:10:00 +0800 Subject: [PATCH] Update build.gradle --- build.gradle | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index d88b258..98dbd7d 100644 --- a/build.gradle +++ b/build.gradle @@ -193,27 +193,9 @@ dependencies { tasks.named('processResources', ProcessResources).configure { def filterList = ['mcmod.info', 'pack.mcmeta'] filterList.addAll(propertyStringList('mixin_configs').collect(config -> "mixins.${config}.json" as String)) - - var replaceProperties = [ - mod_id: propertyString('mod_id'), - mod_name: propertyString('mod_name'), - mod_version: propertyString('mod_version'), - mod_description: propertyString('mod_description'), - mod_authors: "[${propertyStringList('mod_authors', ',').join(', ')}]", - mod_credits: propertyString('mod_credits'), - mod_url: propertyString('mod_url'), - mod_update_json: propertyString('mod_update_json'), - mod_logo_path: propertyString('mod_logo_path'), - mixin_refmap: propertyString('mixin_refmap'), - mixin_package: propertyString('mixin_package') - - ] - inputs.properties replaceProperties - filesMatching(filterList) { - expand replaceProperties + [project: project] + expand project.properties } - if (propertyBool('use_access_transformer')) { rename '(.+_at.cfg)', 'META-INF/$1' } @@ -287,4 +269,4 @@ sourceSets.each { mixin { add sourceSets.main, project.mixin_refmap -} \ No newline at end of file +}