When I try using the new jenkins ruleset introduced in CodeNarc 3.5.0 with Java 21, I get an error:
ERROR: org.codenarc.analyzer.AnalyzerException: Error analyzing source file: Jenkinsfile; BUG! exception in phase 'semantic analysis' in source unit 'None' Unsupported class file major version 65
org.codenarc.analyzer.AnalyzerException: Error analyzing source file: Jenkinsfile; BUG! exception in phase 'semantic analysis' in source unit 'None' Unsupported class file major version 65
The ruleset works fine when using Java 17.
When I try using the new
jenkinsruleset introduced in CodeNarc 3.5.0 with Java 21, I get an error:The ruleset works fine when using Java 17.