MilkBowl / Vault

Vault of common APIs for Bukkit Plugins
GNU Lesser General Public License v3.0
496 stars 354 forks source link

Local builds are failing #891

Closed Jack1424 closed 2 years ago

Jack1424 commented 2 years ago

Anytime that I try to build Vault on my computer, it fails with the error:

class lombok.javac.apt.Processor (in unnamed module @0x1e9d8137) 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 @0x1e9d8137

This error doesn't seem to appear on Travis, though. I don't think that it could be something I'm doing wrong since I've just cloned this repo and run Maven, nothing else.

Geolykt commented 2 years ago

Are you sure that you cloned this repo and not something else? Because I do not think that Vault uses lombok

Jack1424 commented 2 years ago

It looks like Intellij decided that Java 18 was the correct version for Vault. If I actually use the correct version, it builds ok. I also tested it in normal Ubuntu and it built okay too. I don't know why using the wrong Java version would cause that error.