I am trying to change the Java version to 8
in IntelliJ. So I went to File -> Project Structure -> Project -> Selected adopt-opnejdk8
I am on Mac
Problem is when I am trying to compile the code by running ./gradle clean build
I am getting the following error.
java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x26d1564a) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x26d1564a
So in the terminal from IntelliJ I was checking the version, I ran javac --version
, it still says 17, how can I change it to make 1.8
which might ultimately fix my error?