You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes it impossible to run custom detekt rules, compiled with target version higher then 11:
java -jar /opt/detekt.jar --config detekt-ruleset.yml --report xml:detekt_report.xml --excludes **/build/**,**/.idea/** --plugins /opt/detekt-formatting.jar,detekt-custom-rules/compiled-rules.jar
java.lang.UnsupportedClassVersionError: com/project/detektcustomrules/RuleSetProvider has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Question
Could there be a way to bump/specify a java version for the action?
Is there something behind the choice of version 11, or could it be changed easily?
The text was updated successfully, but these errors were encountered:
Thanks for the report. I think we can upgrade Java version to 17. (According to this table)
The reason for jdk 11 is that I copied this Dockerfile from my internal tools several years ago. It was created for the older version of Detekt where jdk 11 was a requirement
Problem
Is seems like the JDK version used to run detekt is 11.
From Dockerfile:
This makes it impossible to run custom detekt rules, compiled with target version higher then 11:
Question
Could there be a way to bump/specify a java version for the action?
Is there something behind the choice of version 11, or could it be changed easily?
The text was updated successfully, but these errors were encountered: