Only process .json and .toml files in the ProcessResources gradle task.

This commit is contained in:
Username404-59 2021-04-08 15:48:07 +02:00
parent 4b9a04a431
commit 17b07458f8
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ allprojects {
}
withType(ProcessResources::class) {
val modVersionPair: Pair<String, String> = "mod_version" to (rootProject.version as String)
expand(mutableMapOf(modVersionPair))
filesMatching(listOf("*.json", "*.toml")) {
expand(mutableMapOf(modVersionPair))
}
}
}
}