26 lines
1.1 KiB
Groovy
26 lines
1.1 KiB
Groovy
group = 'net.runelite.rs'
|
|
description = 'Injector'
|
|
dependencies {
|
|
compile project(':deobfuscator')
|
|
compile project(':mixins')
|
|
compile project(':runelite-api')
|
|
compile project(':runescape-api')
|
|
compile group: 'org.apache.maven', name: 'maven-plugin-api', version:'3.6.1'
|
|
testCompile project(':deobfuscator')
|
|
testCompile group: 'junit', name: 'junit', version:'4.12'
|
|
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'
|
|
annotationProcessor group: 'org.eclipse.sisu', name: 'org.eclipse.sisu.inject', version: '0.0.0.M2a'
|
|
}
|
|
|
|
compileJava.doLast {
|
|
def path = sourceSets.main.runtimeClasspath
|
|
def loader = new URLClassLoader(path.collect {f -> f.toURL()} as URL[])
|
|
def inject = loader.loadClass('net.runelite.injector.Injector')
|
|
String[] jarPaths = [
|
|
"${project.rootDir}/runescape-client/build/libs/rs-client-1.5.30-SNAPSHOT.jar",
|
|
"${project.projectDir}/vanilla-181.jar",
|
|
"${project.rootDir}/injected-client/build/libs/injected-client-1.5.30-SNAPSHOT.jar"
|
|
]
|
|
inject.main(jarPaths)
|
|
} |