This message was deleted.
# dependency-management
s
This message was deleted.
j
you can get the ID and apply it from
libs.plugins.detekt
not remember exactly, something like
libs.plugins.detekt.get().id
or something so
i
I have found this
Copy code
plugin(libs.plugins.detekt.get().pluginId)
but build is crashing
Copy code
org.gradle.internal.exceptions.LocationAwareException: Build file '/Users/igorwojda/StudioProjects/android-showcase/build.gradle.kts' line: 20
Extension with name 'libs' does not exist. Currently registered extension names: [ext]
	at org.gradle.kotlin.dsl.execution.InterpreterKt$locationAwareExceptionFor$2.invoke(Interpreter.kt:601)
...
🤔
j
Copy code
subprojects {
    apply(plugin = libs.plugins.detekt.get().pluginId) 
}
v
Actually, using
subprojects { ... }
is a smell anyway and you should avoid it but instead use convention plugins.
👍 1