Vlastimil Brecka
07/11/2026, 11:15 AMcheckDebug lifecycle task
In root build.gradle I define
def checkDebug = tasks.register("checkDebug") {
group = "verification"
}
subprojects { subproject ->
subproject.pluginManager.withPlugin("com.android.library") {
tasks.named("checkDebug") {
dependsOn("${subproject.path}:lintDebug")
dependsOn("${subproject.path}:testDebugUnitTest")
}
}
}
How would I push this into convention plugin?
Convention plugin is applied to each project, but there is no central place, so where do I register checkDebug once? Or is that not the way?
If I register it in every project, it will be availabel to the CLI, but I wont be able to depend on it, so I cannot have my buildAll etc, which kills further composing, which is dumb
What the idiomatic way of doing this with convention plugins?Vampire
07/11/2026, 12:19 PMVlastimil Brecka
07/11/2026, 12:43 PMtasks.register("checkDebug"), right? isnt that somehow less performant or idk? I was underimpression I should register once in a central place and then projects should plug themselves into it via named("checkDebug")Vampire
07/11/2026, 2:10 PMVampire
07/11/2026, 2:12 PMVlastimil Brecka
07/11/2026, 2:14 PMVlastimil Brecka
07/11/2026, 2:20 PMVampire
07/11/2026, 2:56 PMVlastimil Brecka
07/11/2026, 2:57 PMVampire
07/11/2026, 3:00 PMVampire
07/11/2026, 3:41 PMVampire
07/11/2026, 3:44 PMephemient
07/11/2026, 7:27 PMdebug) is linted/testedephemient
07/11/2026, 7:31 PM./gradlew check on a modern project should already be lintDebug and testDebugUnitTestVlastimil Brecka
07/11/2026, 9:08 PMVlastimil Brecka
07/11/2026, 9:08 PMbuild ill get just double assembles, but still one check?ephemient
07/11/2026, 9:09 PMVlastimil Brecka
07/11/2026, 9:32 PMdetekt which is the weaker one
so either I check detektMain or create my own alternative lifecycle check (and wire everything) ?ephemient
07/11/2026, 9:36 PMVlastimil Brecka
07/11/2026, 9:38 PM:foo:impl:verifyDebugAppDatabaseMigration SKIPPED
:foo:impl:verifyReleaseAppDatabaseMigration SKIPPED
so I guess its probably not the way to go? or cna I somehow disable the release one?Vlastimil Brecka
07/11/2026, 9:39 PMkoverVerify, that wont be great for local dev, I'd need to provide some sort of checkLite
I wasnt even aware what all plugs into checkephemient
07/11/2026, 9:41 PMVlastimil Brecka
07/11/2026, 9:43 PM./gradlew check on CI and call it a day in a android buildVlastimil Brecka
07/11/2026, 9:43 PMcheck alt?ephemient
07/11/2026, 9:43 PMVlastimil Brecka
07/11/2026, 9:43 PMVlastimil Brecka
07/11/2026, 9:44 PMVlastimil Brecka
07/11/2026, 9:45 PMVlastimil Brecka
07/11/2026, 9:46 PMephemient
07/11/2026, 9:46 PMVlastimil Brecka
07/11/2026, 9:47 PMVlastimil Brecka
07/11/2026, 9:47 PM