android-gradle-logic

Automate centralized Android Gradle build configuration with convention plugins and version catalogs.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/kotlinknight/NutriSoloAndroid --skill android-gradle-logic-kotlinknight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-gradle-logic
Source: https://github.com/kotlinknight/NutriSoloAndroid/tree/main/.agents/skills/android-gradle-logic
Command: npx skills add https://github.com/kotlinknight/NutriSoloAndroid --skill android-gradle-logic-kotlinknight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralise Android Gradle build logic by moving configuration into reusable Convention Plugins, avoiding copy-pasted build scripts across modules and enabling consistent defaults like compileSdk, minSdk, and Kotlin DSL setup.

Core Features & Use Cases

  • Centralised Convention Plugins for Android Application, Library, and Compose.
  • Composite builds and a shared version catalog to standardise dependencies across modules.
  • Clear steps to integrate build-logic into a multi-module project and apply conventions in app and feature modules.

Quick Start

Integrate the build-logic module into your root settings, then apply the provided convention plugins in your app and feature module build files.

Frequently Asked Questions about android-gradle-logic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I centralize Android Gradle build logic to stop duplicating scripts across modules?

You can centralize Android Gradle build logic by moving configuration into reusable Convention Plugins. This approach standardizes compileSdk and minSdk defaults while preventing copy-pasted build scripts across your multi-module project.

When should I use convention plugins and composite builds for my Android project?

Use convention plugins and composite builds when you need to standardize Gradle setups across a multi-module Android project. This mechanism centralizes Kotlin DSL plugin registrations and shared dependencies to eliminate configuration drift.

How do I integrate a build-logic module into my multi-module Android project?

To integrate build-logic, include the module in your root settings file, then apply the provided convention plugins in your app and feature module build files. This standardizes your Gradle setup through a shared version catalog.

Can I standardize dependencies across Android modules using a version catalog with Kotlin DSL?

Yes, you can standardize dependencies across Android modules by using a shared version catalog with Kotlin DSL. This defines conventional plugin registrations and dependency versions centrally to ensure consistency across your project.

What is the best way to manage compileSdk and minSdk defaults in a multi-module Android app?

The best way to manage compileSdk and minSdk defaults is by defining them inside centralized convention plugins. This ensures every Android application and library module applies the same standardized configuration without manual repetition.

Does this Gradle build logic approach work for both Android application and library modules?

Yes, this approach works for both application and library modules by providing dedicated convention plugins. It standardizes the Kotlin DSL setup and Gradle configuration across all module types in your composite build environment.