Closed paul-dingemans closed 1 year ago
cc @chao2zhang
github-ktlint$ gradlew :ktlint-cli-reporter-sarif:dep > deps.txt
Hmm 🤔, probably the result of going multiplatform: https://github.com/detekt/sarif4k/pull/6, the weird thing is that we declare the dependency:
although as implementation
, so it won't become part of your compileClasspath
, see Runtime Dependencies at https://mvnrepository.com/artifact/io.github.detekt.sarif4k/sarif4k-jvm/0.3.0.
As a quick workaround you can add the missing dependency to ktlint-cli-reporter-sarif
.
Quick decompile of sarif4k-jvm-0.3.0.jar
shows:
package io.github.detekt.sarif4k;
import kotlinx.serialization.KSerializer;
import kotlinx.serialization.Serializable;
@Serializable(with = Companion.class)
public enum Level {
public static final Companion Companion = new Companion((DefaultConstructorMarker)null);
public static final class Companion implements KSerializer<Level> {
which means this dependency should be api
.
Problem is indeed solved with 0.4. Tnx.
Thank you for verifying!
I was trying to update the sarif4k dependency in Ktlint from version
0.2.0
to0.3.0
. It however results in compilation errors below on thektlint-cli-reporter-sarif
:Do you have any idea how to resolve?