Anybody use detekt with multiplatform? Specifically trying custom extensions. I can add my jar at the root level, but in the source set dependencies, the gradle build fails to see
detektPlugins
as a valid configuration
a
Artur Bosch
01/03/2020, 9:32 PM
No multiplatform here.
Maybe if you share your gradle build script, others can take a look.
Have you tried defining a custom detekt task to see if our gradle plugin can handle kotlin native soruce sets?
Copy code
val detektAll by tasks.registering(Detekt::class) {
description = "Runs over whole code base without the starting overhead for each module."
parallel = true
buildUponDefaultConfig = true
setSource(files(projectDir))
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
...
pluginClasspath.setFrom("dependency")
}