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
2 changed files with 5 additions and 6 deletions

4
.gitignore vendored
View File

@ -24,6 +24,10 @@ bin/
.classpath .classpath
.project .project
# macos
*.DS_Store
# fabric # fabric
run/ run/

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