There are some options that are non-standard and not supported by the Java Compiler API which Gradle uses when you are running in the same JVM. I
In particular, -XDignore.symbol.file
is definitely a non-standard option and you must fork if you want to use it.