Hi all. I'm getting this warning: ```detekt(Detekt...
# detekt
r
Hi all. I'm getting this warning:
Copy code
detekt(DetektExtension.() -> Unit): Unit' is deprecated. Either apply detekt plugin to root project
why? gradle version: 6.5 detekt version: 1.10.
g
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
r
@gammax, here my setup
d
@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
👌 1