https://kotlinlang.org logo
#detekt
Title
# detekt
a

antsiferov.ivan

07/04/2019, 11:25 AM
Hi there! Having issue with upgrading from RC14 to RC16. I’m using ktlint wapper and custom ruleset. After upg version, detekt task started to fail with
Cannot set value for plugins on detekt task and apply detektPlugins configuration at the same time.
message. My detekt config block is in attached snippet. Anyone faced that error?
a

Artur Bosch

07/06/2019, 2:38 PM
hey, this is basically a change to inline with a more gradle plugin style configuration. Instead of loading the
plugins
dynamically we start detekt with the full classpath via
detektPlugins
. Please try to add a flat repository for your jar file: https://docs.gradle.org/current/userguide/repository_types.html#sec:flat_dir_resolver then add your jar inside a
detektPlugins
statement next to the formatting one.
a

antsiferov.ivan

07/08/2019, 8:49 PM
Thnx, it worked when i added dependency as
detektPlugins name: "myruleset"
2 Views