From 17b07458f87d55c79a663c2c1f1611dbae29cdb9 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 8 Apr 2021 15:48:07 +0200 Subject: [PATCH] Only process .json and .toml files in the ProcessResources gradle task. --- build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 514ccda..9529b6b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -78,7 +78,9 @@ allprojects { } withType(ProcessResources::class) { val modVersionPair: Pair = "mod_version" to (rootProject.version as String) - expand(mutableMapOf(modVersionPair)) + filesMatching(listOf("*.json", "*.toml")) { + expand(mutableMapOf(modVersionPair)) + } } } }