gradle: adds injector functionality

This commit is contained in:
Zeruth
2019-07-23 04:03:47 -04:00
parent e4f9aa1d6a
commit fdeb4a1171

View File

@@ -11,3 +11,14 @@ dependencies {
testCompile group: 'org.mockito', name: 'mockito-all', version:'1.10.19'
compileOnly group: 'org.apache.maven.plugin-tools', name: 'maven-plugin-annotations', version:'3.6.0'
}
task inject(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "net.runelite.injector.Injector"
args('../runescape-client/build/libs/rs-client-1.5.30-SNAPSHOT.jar,./vanilla-181.jar,../injected-client/build/libs/injected-client-1.5.30-SNAPSHOT.jar'.split(','))
}
compileJava.doLast {
tasks.inject.execute()
}