Thread
#detekt
    Rodrigo Silva

    Rodrigo Silva

    2 years ago
    Hi all. I'm getting this warning:
    detekt(DetektExtension.() -> Unit): Unit' is deprecated. Either apply detekt plugin to root project
    why? gradle version: 6.5 detekt version: 1.10.
    gammax

    gammax

    2 years ago
    Hard to say if you don’t share your project setup 🤔 Anyway, as the error message suggests, you need to either apply the detekt plugin only in the root project or use the
    apply false
    mechanism to apply the plugin to all the subprojects, as described here
    Rodrigo Silva

    Rodrigo Silva

    2 years ago
    @gammax, here my setup
    Davide Giuseppe Farella

    Davide Giuseppe Farella

    2 years ago
    @Rodrigo Silva you have to remove the wildcard import, otherwise it will import
    io.gitlab.arturbosch.detekt.detekt
    instead of using the proper gradle extension