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
.project
# macos
*.DS_Store
# fabric
run/

View File

@ -26,14 +26,9 @@ dependencies {
processResources {
inputs.property "version", project.version
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