gradle: add support for rs2asm / overlay index

This commit is contained in:
Zeruth
2019-07-23 05:28:46 -04:00
parent fdeb4a1171
commit 2824d17f66
3 changed files with 108 additions and 0 deletions

View File

@@ -6,3 +6,22 @@ dependencies {
compile group: 'org.apache.maven', name: 'maven-plugin-api', version:'3.6.1'
compileOnly group: 'org.apache.maven.plugin-tools', name: 'maven-plugin-annotations', version:'3.6.0'
}
task assembleMojo(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "net.runelite.script.AssembleMojo"
args('../runelite-client/src/main/scripts,../runelite-client/build/classes/runelite'.split(','))
}
task indexMojo(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = "net.runelite.script.IndexMojo"
args('../runelite-client/build/classes/runelite,../runelite-client/build/classes/runelite/index'.split(','))
}
compileJava.doLast {
tasks.assembleMojo.execute()
tasks.indexMojo.execute()
}