gradle: partially revert #1166 (#1250)

This commit is contained in:
ThatGamerBlue
2019-08-03 23:11:59 +01:00
committed by GitHub
parent b2d57b12f1
commit 5b5ee5b5a6
6 changed files with 93 additions and 9 deletions

View File

@@ -24,8 +24,24 @@
*/
description = 'Injected Client'
task injector(){
// I kinda want to make the entire injector work here but seems like more work
dependsOn ':injector-plugin:compileJava'
compileJava {
dependsOn ':injector-plugin:assemble'
}
compileJava.outputs.upToDateWhen { false }
compileJava.doLast() {
copy {
File f = file("build/classes/java/main")
f.deleteDir()
f.mkdirs()
from ("${injectedClassesPath}")
into ("build/classes/java/main")
}
}
classes.doLast() {
File f = file("build/classes/java/main/Placeholder.class")
f.delete()
}