mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
feat(detekt): try running type resolution enabled task if available
This commit is contained in:
parent
e1d16e9f36
commit
eb8be2f909
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ object Detekt {
|
|||
}
|
||||
project.pluginManager.withPlugin("base") {
|
||||
project.tasks.named(LifecycleBasePlugin.CHECK_TASK_NAME).configure {
|
||||
dependsOn(project.tasks.named("detekt"))
|
||||
val task = project.tasks.findByPath("detektMain") ?: project.tasks.findByPath("detekt")
|
||||
if (task != null) dependsOn(task)
|
||||
}
|
||||
}
|
||||
project.dependencies.add(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue