logback icon indicating copy to clipboard operation
logback copied to clipboard

Java 11 or Java 21 required?

Open oliviercailloux opened this issue 10 months ago • 2 comments

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.

oliviercailloux avatar Apr 08 '24 19:04 oliviercailloux