fabric-*: update processResources to Gradle 7

This commit is contained in:
Kosma Moczek 2021-06-27 15:58:26 +02:00
parent b64e73ef92
commit 02ec59b72d
5 changed files with 5 additions and 40 deletions

View File

@ -41,16 +41,9 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version filesMatching('fabric.mod.json') {
from(sourceSets.main.resources.srcDirs) {
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

View File

@ -41,16 +41,9 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version filesMatching('fabric.mod.json') {
from(sourceSets.main.resources.srcDirs) {
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

View File

@ -41,16 +41,9 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version filesMatching('fabric.mod.json') {
from(sourceSets.main.resources.srcDirs) {
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

View File

@ -41,16 +41,9 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version filesMatching('fabric.mod.json') {
from(sourceSets.main.resources.srcDirs) {
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

View File

@ -41,16 +41,9 @@ dependencies {
} }
processResources { processResources {
inputs.property "version", project.version filesMatching('fabric.mod.json') {
from(sourceSets.main.resources.srcDirs) {
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