Gradle Build Analytics and Dependency Visualization

Written by: Electric Bee
2 min read

November 20, 2013 Update : The annotation-generator available on GitHub have been extended to now also leverage internal dependency information from Gradle - enabling interactive traversal through the dependency graph and additional reporting such as e.g. Longest Serial Chain and ElectricSimulator.

With the announcement from earlier this year that the Android Studio should feature Gradle as their supported build tool, the time is now ripe for Gradle to become adopted as a mainstream and standard technology for software builds. In my explorations of the capabilities and behaviour of Gradle, I quickly found a lacking need for the proper and powerful build visualization and analytics that I have learned to get used to via CloudBees Accelerator .

There is a profiling feature in Gradle that produces table-based metrics which requires a fair amount of core understanding to appreciate and extract actionable value from. Given this I decided to explore implementing a way to generate ElectricInsight-compatible annotation files from Gradle, with dependency management/visualization and performance reporting. Below is an ElectricInsight screenshot of the gradle build of Gradle itself that links to a repository on GitHub with more details and usage guidelines. It's freely available for anyone through CloudBees Accelerator Developer Edition - give it a try and let us know how it works!

Stay up to date

We'll never share your email address and you can opt out at any time, we promise.