From d8570d03d6cd5fb7c636cbd8f830230c77b60e5c Mon Sep 17 00:00:00 2001 From: glowredman <35727266+glowredman@users.noreply.github.com> Date: Sat, 17 Dec 2022 22:44:58 +0100 Subject: [PATCH] Allow tokenreplacement in multiple files (#105) --- build.gradle | 4 +++- gradle.properties | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d7d5e4c..926a483 100644 --- a/build.gradle +++ b/build.gradle @@ -280,7 +280,9 @@ minecraft { runDir = 'run' if (replaceGradleTokenInFile) { - replaceIn replaceGradleTokenInFile + for (f in replaceGradleTokenInFile.split(',')) { + replaceIn f + } if (gradleTokenModId) { replace gradleTokenModId, modId } diff --git a/gradle.properties b/gradle.properties index 52aba0e..30f2705 100644 --- a/gradle.properties +++ b/gradle.properties @@ -29,6 +29,7 @@ remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/con developmentEnvironmentUserName = Developer # Define a source file of your project with: +# Multiple source files can be defined here by providing a comma-seperated list: Class1.java,Class2.java,Class3.java # public static final String VERSION = "GRADLETOKEN_VERSION"; # The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's # version in @Mod([...], version = VERSION, [...])