Skip to content
Commitwise
Menu

Convention plugin

Your own small Gradle plugin that applies shared build configuration, such as everything an Android feature module needs.

Definition

Convention plugins live in an included build (often build-logic) and replace copy-pasted configuration and subprojects blocks. A module applies one plugin id and gets the SDK levels, Kotlin and Compose setup and common dependencies, so its own build file stays a few lines long.

In practice

Every feature module applies shop.android.feature, which configures Compose, Hilt with KSP and the design system dependency.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.