I don't know what changed in 1.7.4, but when I run...
# detekt
d
I don't know what changed in 1.7.4, but when I run detekt in parallel on all configured modules, I get these weird classloading issues:
Copy code
Caused by: java.lang.NoClassDefFoundError: kotlin/io/CloseableKt
        at io.gitlab.arturbosch.detekt.api.internal.YamlConfig$Companion.load(YamlConfig.kt:67)
        at io.gitlab.arturbosch.detekt.api.internal.YamlConfig$Companion.load(YamlConfig.kt:56)
        at io.gitlab.arturbosch.detekt.cli.ConfigurationsKt.parsePathConfig(Configurations.kt:67)
        at io.gitlab.arturbosch.detekt.cli.ConfigurationsKt.loadConfiguration(Configurations.kt:29)
        at io.gitlab.arturbosch.detekt.cli.runners.Runner.createSettings(Runner.kt:78)
        at io.gitlab.arturbosch.detekt.cli.runners.Runner.execute(Runner.kt:30)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at io.gitlab.arturbosch.detekt.invoke.DefaultCliInvoker.invokeCli(DetektInvoker.kt:51)
        ... 98 more
a
Hm, this sounds like https://github.com/detekt/detekt/issues/2501 😞. Which Kotlin version do you use?
Just to be sure, can you add
toolVersion = "1.7.4"
to the
detekt {..}
and enable
debug = true
. is the version right? Also which Gradle version are you running?
d
Sorry for the late reply, I'm on vacation right now. I'm on Gradle 5.6.4 and Kotlin 1.3.61 AFAIR, will report back next week. Thanks for the bug link, will star that.