File: "build.gradle" in project root directory
allprojects {
repositories {
google()
jcenter()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
//options.compilerArgs.add('-Xbootclasspath/p:exsupport/libs/classes-sub-debug.jar')
Set<File> fileSet = options.bootstrapClasspath.getFiles()
List<File> newFileList = new ArrayList<>();
newFileList.add(new File("./app/libs/classes-sub-debug.jar"))
newFileList.addAll(fileSet)
options.bootstrapClasspath = files( newFileList.toArray() )
System.out.println( "Project: "+project.getPath() + "\nOrigFileSet:\n"+fileSet
+ "\nUpdatedFileSet:\n"+newFileList);
logger.info("Info:Project: "+project.getPath() + "\nOrigFileSet:\n"+fileSet+"\nUpdatedFileSet:\n"+newFileList);
}
}
}