jkao
(James Kao)
March 30, 2016, 4:43am
3
That error message can be supressed with -XDignore.symbol.file, but you cannot use that flag with Gradle’s default way of invoking the compiler, as far as I know.
The underlying issue is described in How to set -XDignore.symbol.file=true on some compiles in multi-project build - #13 by Peter_Niederwieser , but it doesn’t look like anything in Gradle has changed.
The only way that seems to work would be to use a forked javac to build the project, as described at:
I have read the other posts related to compiler options but it doesn’t seem to work. The problem is that we are using a Sun private class and it will not compile using Gradle. It does compile in Eclipse with no special settings.
Output:
:Project1:compileJava
\MyClass.java:37: error: package sun.security.pkcs10 does not exist
import sun.security.pkcs10.PKCS10;
1 error
FAILED
We are planning to migrate off of the Sun private implementation but in the mean time we need the project to compi…