Configure all available ProcessResources tasks (#3)
This allows using the properties in resources in the test sourceset automatically and any other custom sourcesets a modder might declare
This commit is contained in:
parent
33efa70431
commit
95076b799e
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ dependencies {
|
||||||
// A missing property will result in an error. Properties are expanded using ${} Groovy notation.
|
// A missing property will result in an error. Properties are expanded using ${} Groovy notation.
|
||||||
// When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments.
|
// When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments.
|
||||||
// See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html
|
// See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html
|
||||||
tasks.named('processResources', ProcessResources).configure {
|
tasks.withType(ProcessResources).configureEach {
|
||||||
var replaceProperties = [
|
var replaceProperties = [
|
||||||
minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range,
|
minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range,
|
||||||
neo_version : neo_version, neo_version_range: neo_version_range,
|
neo_version : neo_version, neo_version_range: neo_version_range,
|
||||||
|
|
Loading…
Reference in a new issue