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

@@ -28,7 +28,7 @@ import java.text.SimpleDateFormat
import java.util.Date
plugins {
id("com.github.johnrengelman.shadow") version "6.1.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
java
}
@@ -137,10 +137,6 @@ tasks {
}
processResources {
finalizedBy("filterResources")
}
register<Copy>("filterResources") {
val tokens = mapOf(
"project.version" to ProjectVersions.rlVersion,
"rs.version" to ProjectVersions.rsversion.toString(),
@@ -151,12 +147,10 @@ tasks {
inputs.properties(tokens)
from("src/main/resources/")
include("**/*.properties")
into("${buildDir}/resources/main")
filter(ReplaceTokens::class, "tokens" to tokens)
filteringCharset = "UTF-8"
filesMatching("**/*.properties") {
filter(ReplaceTokens::class, "tokens" to tokens)
filteringCharset = "UTF-8"
}
}
register<Copy>("packInjectedClient") {
@@ -196,7 +190,7 @@ tasks {
register<JavaExec>("RuneLite.main()") {
group = "openosrs"
classpath = sourceSets["main"].runtimeClasspath
classpath = project.sourceSets.main.get().runtimeClasspath
enableAssertions = true
mainClass.set("net.runelite.client.RuneLite")
}