Sean Reilly on 15 Jul, 2021 02:58 PM
I'm sorry for the delay. Gradle does not like me. Would you have an idea where the following error might be coming from?
> importlist % ./gradlew assemble
> Starting a Gradle Daemon (subsequent builds will be faster)
> > Task :core:compileJava
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> > Task :core:compileJava FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':core:compileJava'.
> > java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module @0x3deb8f95) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module @0x3deb8f95
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org >
> BUILD FAILED in 9s
> 1 actionable task: 1 executed
> importlist % javac --version
> javac 16
When I set JAVA_HOME to java 15 I get different errors which you can see in the attached file. I'm guessing that I need to have my environment a bit more in sync with yours, so if you can provide any info about your setup I'd appreciate it.