We include sherrloc via its JAR, but the ant jar target includes all its dependencies, including CUP. Without this funky hacky configuration, compileJava will fail because the generated SCIF Parser will compile against sherrloc's CUP.
|
configurations { |
|
priority // hack to force sherrloc to apprear later than jflex and cup |
|
sourceSets.main.compileClasspath = configurations.priority + sourceSets.main.compileClasspath |
|
sourceSets.main.runtimeClasspath = configurations.priority + sourceSets.main.runtimeClasspath |
|
sourceSets.test.compileClasspath = configurations.priority + sourceSets.test.compileClasspath |
|
sourceSets.test.runtimeClasspath = configurations.priority + sourceSets.test.runtimeClasspath |
|
} |
We include sherrloc via its JAR, but the ant
jartarget includes all its dependencies, including CUP. Without this funky hacky configuration, compileJava will fail because the generated SCIF Parser will compile against sherrloc's CUP.SCIF/build.gradle
Lines 105 to 111 in edb9d5c