From 95076b799e83c1333802e5da1dbea098f2c60e28 Mon Sep 17 00:00:00 2001 From: SizableShrimp Date: Sun, 23 Jul 2023 06:26:33 -0400 Subject: [PATCH] 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 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 71a84e9..a5aa45a 100644 --- a/build.gradle +++ b/build.gradle @@ -151,7 +151,7 @@ dependencies { // 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. // 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 = [ minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, neo_version : neo_version, neo_version_range: neo_version_range,