Merge pull request #3208 from open-osrs/woohoo-3-second-builds

This commit is contained in:
Owain van Brakel
2022-05-30 15:50:23 +02:00
committed by GitHub
10 changed files with 46 additions and 68 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")
}