project(gradle): Fix warnings and deprecations

This commit is contained in:
Owain van Brakel
2022-05-30 01:27:11 +02:00
parent 5c7302fd5a
commit 46b6def0df
9 changed files with 38 additions and 64 deletions

View File

@@ -46,10 +46,6 @@ dependencies {
tasks {
processResources {
finalizedBy("filterResources")
}
register<Copy>("filterResources") {
val tokens = mapOf(
"projectver" to ProjectVersions.rlVersion,
"rsver" to ProjectVersions.rsversion.toString(),
@@ -58,12 +54,9 @@ tasks {
inputs.properties(tokens)
from("src/main/resources") {
include("runelite.properties")
filesMatching("runelite.properties") {
filter(ReplaceTokens::class, "tokens" to tokens)
filteringCharset = "UTF-8"
}
into("${buildDir}/resources/main")
filter(ReplaceTokens::class, "tokens" to tokens)
filteringCharset = "UTF-8"
}
}