Gradle Doctor
The right prescription for your Gradle build.
Watch this Virtual Android Makers 2019 entitled The Secrets of the Build Scan Plugin and the Internals of Gradle to learn more about what this plugin does.
Usage
- Apply the Gradle Plugin to the root of your project.
- The Gradle Doctor will print suggestions for your build as you run regular tasks.
plugins {
id "com.osacky.doctor" version "0.10.0"
}
plugins {
id("com.osacky.doctor") version "0.10.0"
}
For legacy plugin application, see the Gradle Plugin Portal.
Features
- Configurable warnings for build speed problems
- Measure time spent in Dagger annotation processors.
- Ensure
JAVA_HOME
is set and matches IDE'sJAVA_HOME
- Easily disable test caching. Tests may not declare all inputs causing false positives. Needed until Gradle implements a sandbox.
- Disable assembling all apps in repository simultaneously.
- Fail build when empty src directories are found. Empty src directories cause cache misses.
- Benchmarking remote build cache connection speed.
- Warnings for negative avoidance saving tasks.
- Build scan tags to easily find and categorize builds with warnings.
- Warn when not using Parallel GC in Java 9+.
- Warn or fail build when using a Rosetta-translated JDK on a Mac computer with Apple silicon.
Configurable Warnings
- Warn when build spends more than 10% of the time garbage collecting.
- Warn when connection to maven repositories is slowing down the build.
- Warn when build cache connection speed is slowing down the build.
Supported Gradle versions
The minimum supported Gradle version is 6.1.1. If using Gradle 5.x, please use Gradle Doctor version 0.7.3.