# detekt

04/07/2020, 11:46 AM
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(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at io.gitlab.arturbosch.detekt.invoke.DefaultCliInvoker.invokeCli(DetektInvoker.kt:51)
        ... 98 more

Artur Bosch

04/11/2020, 6:11 PM
Hm, this sounds like 😞. 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?

04/16/2020, 8:45 PM
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.