gradle-build-performance

Diagnose and optimize Android/Gradle build performance using build scans.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/thinhtt264/Snaplet-App --skill gradle-build-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-build-performance
Source: https://github.com/thinhtt264/Snaplet-App/tree/main/.cursor/skills/gradle-build-performance
Command: npx skills add https://github.com/thinhtt264/Snaplet-App --skill gradle-build-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android/Gradle projects often suffer from slow builds due to long configuration phases, non-incremental tasks, and ineffective caching. This Skill provides a structured approach to measure, diagnose, and optimize build performance.

Core Features & Use Cases

  • Baseline measurement and profiling of Gradle builds to identify time sinks in configuration or execution
  • Build scan analysis and performance reporting to pinpoint bottlenecks in CI/CD, parallelization, and caching
  • Targeted optimizations such as enabling Gradle configuration cache, build cache, parallel execution, and incremental annotation processing
  • Use case: Large Android projects or monorepos where reducing build times accelerates development and release cycles

Quick Start

Use the gradle-build-performance skill to measure a baseline by running a clean build and an incremental build, then generate a build scan to observe performance trends. Then apply one optimization (for example enabling configuration cache in gradle.properties) and re-measure to verify improvements.

Frequently Asked Questions about gradle-build-performance

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

FAQPage Schema
How do I speed up slow Gradle builds for large Android projects?

To speed up slow Gradle builds for large Android projects, enable configuration cache, build cache, parallel execution, and incremental annotation processing. This reduces configuration phases and improves task execution efficiency.

How does Gradle build scan analysis identify CI/CD build bottlenecks?

Gradle build scan analysis identifies CI/CD build bottlenecks by profiling baseline clean and incremental builds to pinpoint time sinks in configuration or execution, helping engineers apply targeted optimizations based on performance trends.

What is the best way to measure and diagnose Android build performance?

The best way to measure Android build performance is to establish a baseline by running a clean build and an incremental build, then generate a build scan to observe performance trends and pinpoint bottlenecks in parallelization and caching.

Why does my Gradle configuration phase take so long and how do I optimize it?

Your Gradle configuration phase takes long due to unnecessary configuration-time I/O and dynamic dependencies. You can optimize it by enabling configuration cache and avoiding these inefficient dependencies.

Can I use this build optimization approach for Android monorepos with heavy CI/CD usage?

Yes, this build optimization approach is specifically applicable for large Android projects or monorepos with heavy CI/CD usage, helping reduce build times to accelerate development and release cycles.