project(gradle): Fix warnings and deprecations
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user