fabric-1.17: backport processResources fixes

This commit is contained in:
Kosma Moczek 2021-06-27 19:04:32 +02:00
parent d5f026b533
commit 2242fd0a26

View File

@ -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