This commit is contained in:
Aleksey 2021-06-27 17:30:15 +03:00
parent 30204a2aee
commit daefcc4dbf
5 changed files with 12 additions and 8 deletions

View file

@ -70,12 +70,16 @@ def useApi(String dep) {
processResources {
inputs.property "version", project.version
duplicatesStrategy = 'WARN'
duplicatesStrategy = 'EXCLUDE'
from(sourceSets.main.resources.srcDirs) {
include "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