gradle-build-performance

Analyze Gradle build scans and profile local builds to identify Android build performance bottlenecks.

Updated May 29, 2016
One-click install
npx skills add https://github.com/AerisG222/maw-photos-android --skill gradle-build-performance-aerisg222
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gradle-build-performance
Source: https://github.com/AerisG222/maw-photos-android/tree/main/.github/skills/gradle-build-performance
Command: npx skills add https://github.com/AerisG222/maw-photos-android --skill gradle-build-performance-aerisg222

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses slow build times in Android projects, helping developers identify and resolve performance bottlenecks in their Gradle build processes.

Core Features & Use Cases

  • Performance Analysis: Analyze build scans and profile local builds to pinpoint slow phases (configuration, execution).
  • Optimization Strategies: Apply various Gradle optimizations like configuration cache, build cache, parallel execution, and migrating from kapt to KSP.
  • Use Case: When your Android project's build time has significantly increased, use this Skill to generate a build scan, identify the root cause, and apply targeted optimizations to speed up compilation and CI/CD pipelines.

Quick Start

Use the gradle-build-performance skill to analyze a Gradle build scan and suggest optimizations.

Frequently Asked Questions about gradle-build-performance

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

FAQPage Schema
How do I analyze a Gradle build scan to fix slow Android build times?

You can speed up Android builds by analyzing a Gradle build scan to identify slow configuration and execution phases, then applying optimizations like enabling the configuration cache or migrating from kapt to KSP for faster annotation processing.

Why does my Android Gradle build take so long in CI/CD pipelines?

Android Gradle builds take long in CI/CD pipelines due to compilation bottlenecks and lack of caching. Profiling local builds and enabling configuration cache, build cache, and parallel execution resolves these performance issues.

What is the best way to migrate from kapt to KSP for Gradle build optimization?

The best way to optimize Gradle build performance is migrating from kapt to KSP, which significantly speeds up annotation processing. Analyze your build scan first to confirm kapt is the primary bottleneck before switching.

Can I enable Gradle configuration cache on existing Android projects?

Yes, you can enable Gradle configuration cache on Android projects to speed up builds by caching the configuration phase. You need a solid understanding of the Gradle lifecycle and Android Gradle Plugin configurations to avoid task execution conflicts.

How do I profile local Gradle builds to find compilation bottlenecks?

Profile local Gradle builds by generating a build scan to identify compilation bottlenecks. This process analyzes task execution times across the build lifecycle, showing exactly which Android Gradle Plugin tasks are slowing down your project.