From 2242fd0a262a776ce00d94a8f78a8c29391fab6d Mon Sep 17 00:00:00 2001 From: Kosma Moczek Date: Sun, 27 Jun 2021 19:04:32 +0200 Subject: [PATCH] fabric-1.17: backport processResources fixes --- fabric-1.17/build.gradle | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/fabric-1.17/build.gradle b/fabric-1.17/build.gradle index 1737ce44..c3337169 100644 --- a/fabric-1.17/build.gradle +++ b/fabric-1.17/build.gradle @@ -33,7 +33,6 @@ dependencies { compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2' - shadow project(path: ':DynmapCoreAPI', configuration: 'shadow') shadow project(path: ':DynmapCore', configuration: 'shadow') // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. @@ -41,17 +40,9 @@ dependencies { } processResources { - inputs.property "version", project.version - duplicatesStrategy = 'include' - - from(sourceSets.main.resources.srcDirs) { - include "fabric.mod.json" + filesMatching('fabric.mod.json') { expand "version": project.version } - - from(sourceSets.main.resources.srcDirs) { - exclude "fabric.mod.json" - } } // ensure that the encoding is set to UTF-8, no matter what the system default is