Skip to content

Commit

Permalink
project(gradle): Cache injector task
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain94 committed May 30, 2022
1 parent a54eae6 commit b842e86
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions injector/injector.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ tasks.register<JavaExec>("inject") {
classpath = project.sourceSets.main.get().runtimeClasspath
mainClass.set("com.openosrs.injector.Injector")

inputs.dir("${project.extra["rootPath"]}/runelite-mixins/src/main/java")
inputs.dir("${project.extra["rootPath"]}/runelite-api/src/main/java")
inputs.dir("${project.extra["rootPath"]}/runescape-api/src/main/java")
inputs.dir("${project.extra["rootPath"]}/runescape-client/src/main/java")

val out = "${project.extra["rootPath"]}/runelite-client/build/injected/injected-client.oprs"
outputs.file(out)
outputs.file("${project.extra["rootPath"]}/runelite-client/build/injected/client.hash")

args("--outmode", "jar", "--vanilla", vanillaDep.singleFile, "--version", openosrsVersion, "--output", out)
outputs.cacheIf { true }

outputs.upToDateWhen {
false
}
args("--outmode", "jar", "--vanilla", vanillaDep.singleFile, "--version", openosrsVersion, "--output", out)
}

0 comments on commit b842e86

Please sign in to comment.