Simply processResources logic & make it compatible with future versions of Gradle #69

Merged
NeRdTheNed merged 3 commits from master into master 2020-10-14 10:23:07 +00:00
Showing only changes of commit 5206a8b385 - Show all commits

View File

@ -26,14 +26,9 @@ dependencies {
processResources { processResources {
inputs.property "version", project.version inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) { filesMatching('fabric.mod.json') {
include "fabric.mod.json"
expand "version": project.version 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 // ensure that the encoding is set to UTF-8, no matter what the system default is