Seems like:
-
Oracle’s ‘javac’ doesn’t grant access to some of the internal classes in ‘rt.jar’ which aren’t meant to be used by user code.
-
This can be circumvented by explicitly adding ‘rt.jar’ to the compile class path.
To add a single file to a configuration, you can do ‘dependencies.compile files(‘path/to/file’)’ (instead of the ‘flatDir’ approach).