Skip to content

Files

Latest commit

 

History

History

build-logic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Convention Plugins

The build-logic directory contains project-specific convention plugins designed to maintain a centralized configuration approach for common module settings and is based on https://developer.squareup.com/blog/herding-elephants/ and https://github.com/jjohannes/idiomatic-gradle.

By using convention plugins within build-logic, we eliminate redundant build script configurations and avoid clutter in subproject settings, overcoming the limitations of the buildSrc directory.

The build-logic folder is included as a build in the main settings.gradle.kts file.

Within build-logic, there is a convention module that defines plugins available to standard modules for their configurations.

Additionally, build-logic includes several Kotlin files to facilitate sharing logic between plugins, particularly useful when setting up Android components (libraries vs. applications) with shared configurations.

These plugins are modular and designed to handle specific tasks, allowing each module to apply only the configurations it requires. For any module that needs unique logic not shared with others, it’s recommended to define that directly in its build.gradle file, rather than creating a separate convention plugin for that specific use.

List of convention plugins: