Bazel: Compile plugins using java 17
When upgrading SuperVanish, I get the following error:
Plugins/CivChat2/src/main/java/vg/civcraft/mc/civchat2/commands/Reply.java:3: error: cannot access VanishAPI
import de.myzelyam.api.vanish.VanishAPI;
^
bad class file: bazel-out/k8-opt-exec-2B5CBBC6/bin/external/SuperVanish/jar/_ijar/jar/jar/downloaded-ijar.jar(/de/myzelyam/api/vanish/VanishAPI.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
Right now, we compile our plugins for java 11 because that's the highest one that worked for the version of our kotlin bazel plugin.