detektPlugins doesn’t exist in commonMain dependen...
# detekt
j
detektPlugins doesn’t exist in commonMain dependencies, how can I add my custom rule to there?
g
mmm that’s odd. Have you applied the detekt-gradle-plugin?
j
yep, in jvm project it is appearing
g
that’s really odd as we create a
configuration
called
detektPlugins
for you. I believe you can manually create one like:
Copy code
configuration {
    detektPlugins
}
(☝️ That’s groovy). Not sure if that would work but worth a try.
j
kts in my case, I will try btw, thank you :)
g
kts should be:
Copy code
val detektPlugins by configurations.creating
👍 1
but yeah, I’m unsure if this would even work
j
if I apply the gradle plugin only in the root, adding there the dependency should be enough to get it working in all kmp modules in the project? I think so when I was using the formatter one but it was long time ago