Our build.gradle logic loops through all tasks looking for JavaCompile tasks to add javac option as a workaround for a gradle javac limitation described as follows:
// The following block is a workaround for the fact that presently Gradle
// can't set the -XDignore.symbol.file flag, because it appears that the
// javac API is lacking support for it. So what we'll do is find any Compile
// task and manually provide the options necessary to fire up the
// compiler with the right settings.
After fixing JDK-8179462, we no longer set -XDignore.symbol.file so we might consider removing this workaround.