qos-ch / logback

The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
Other
2.94k stars 1.27k forks source link

Java 11 or Java 21 required? #802

Open oliviercailloux opened 3 months ago

oliviercailloux commented 3 months ago

When switching my dependency from ch.qos.logback:logback-classic:1.4.14 to (next) version 1.5.0 (or to 1.5.2), vscode tells me: “Incompatible .class files version in required binaries. Project […] is targeting a 17 runtime, but is compiled against '[…]/.m2/repository/ch/qos/logback/logback-core/1.5.0/logback-core-1.5.0.jar' (from the container 'Maven Dependencies') which requires a 21 runtime”.

Indeed, it seems that logback-core is compiled for Java 21.

Is the intent that when depending on logback 1.5.x, I should use Java 21? The doc says otherwise.

mrdziuban commented 2 months ago

This also seems related to why all the GitHub Actions builds are failing -- the build is setup to use java 11 and 17

oliviercailloux commented 1 month ago

The problem still exists with 1.5.6. Can you comment on this, if you believe that this is reported erroneously from VSCode?