-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
Problem
Is seems like the JDK version used to run detekt is 11.
From Dockerfile:
RUN apk --no-cache --update add git curl openjdk11 bash \
&& rm -rf /var/cache/apk/*
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels