home-climate-control / dz

Home Climate Control Core: *the* Open Source multi-zone temperature and climate control system.
http://homeclimatecontrol.com/
GNU General Public License v3.0
59 stars 7 forks source link

last-imperative-maintenace branch fails to build on JDK17 #312

Closed climategadgets closed 5 months ago

climategadgets commented 5 months ago

Expected Behavior

./gradlew clean build installDist succeeds on last-imperative-maintenance branch.

Actual Behavior

It fails, with the error message below.

An exception has occurred in the compiler (17.0.10). Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.IllegalAccessError: class com.google.errorprone.BaseErrorProneJavaCompiler (in unnamed module @0x1642799c) cannot access class com.sun.tools.javac.api.BasicJavacTask (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.api to unnamed module @0x1642799c

Root Cause

Obsolete dependencies that don't work with JDK 17.

climategadgets commented 5 months ago

Fixed as of rev. 537b20aaa3eb500b718a8250c7811045668c0854