kpgalligan

    kpgalligan

    2 years ago
    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

    2 years ago
    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?
    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")
    }
    pluginClasspath.setFrom(files("path/to/your/plugin")))