May 2022
Table of Contents
Introduction
Welcome to the May 2022 Gradle Build Tool newsletter. Here is a collection of news, tips and insights from the community that you can add to your Gradle tool belt as well as updates on the recent releases.
This edition is brought to you by Amanda Martin, the long-time reader of this newsletter and the first-time curator. As always, the great Gradle community has a breadth, depth and abundance of tips and wisdom. This edition lists some resources that will hopefully inspire you to learn something new or reach out to other community members.
From the Community #
Blog posts #
- The Javax → Jakarta Mess, it’s Even Worse Than I Thought - Follow-up to the article covered last month with a call to action to help create a list of all the dependency conflicts. This is a big problem, there are several potential solutions but none are fun or ideal.
- Tony’s Rules for Gradle Plugin Authors - A comprehensive list of some unspoken guidelines (or “rules” if you like that term) for plugin authoring, so that you don’t have to learn everything the hard way.
- A Bag of Properties - There are a lot of properties. This post provides clarity on which ones to use and how to change them. Great list of which references docs to use and why.
- Gradle Version Catalogs for an Awesome Dependency Management - Quick how-to for managing dependencies in Android Studio. Includes tips and common pitfalls.
- The Importance of Validating the Gradle Wrapper - The how and why for checking your jar files along with the Github Actions needed to keep your project secure.
- Gradle Security Considerations - A short list of security-related suggestions such as make sure all artifacts are signed properly, use only trusted Gradle plugins as well as Kotlin and Java compiler plugins.
Videos #
- Gradle for Beginners by Philipp Lackner, a native Android Developer - Explains the core concepts of Android Gradle Plugin. If you are new or inexperienced with Android and Gradle this is a must see.
- 10 Best Gradle Plugins You Can’t Live Without - Tom Gregory shares some of the most used Gradle Plugins. This is an awesome list!
Plugins #
- Android Gradle Plugin 7.2.0 - Warns if your build uses a Jetifier flag (that causes slower build performance). Use Build Analyzer to see if it is safe to remove flags. Most builds don’t need this anymore as AndroidX is pretty standard.
- Dependency Analysis Gradle Plugin v1.2.0 - Check the unused dependencies, the used transitive dependencies and dependencies declared on the wrong configuration. Yes, this also works for Android.
- Gradle Plugins Java libraries to Modules v0.12 - The plugin to turn traditional jars into Java Modules. This new release can merge jars that have split packages into a single Module.
- Java Module Dependencies Gradle Plugin v0.7 - The plugin to make Gradle use dependencies from module-info.java files automatically so you no longer need a dependencies { } block in Java Module projects for project dependencies.
Test Retry Gradle Plugin 1.4.0 #
Some of your tests are flaky? The Test Retry Gradle Plugin 1.4.0 plugin causes failed tests to be retried within the same task. After executing all tests, any failed tests are retried. The process repeats with tests that continue to fail until the maximum specified number of retries has been attempted, or there are no more failing tests.
This new release runs samples against the latest released version of Gradle and uses the latest dependencies.
Careers #
If you share our passion for developer productivity and tooling, consider joining our globally distributed team and check out our job openings at gradle.com/careers. We are looking for new teammates including software engineers, solutions engineers, data scientists, SEO & SEM manager, account executives and developer productivity engineers.
Upcoming Events #
- June 1 4:00 pm - 7:00 pm (US EDT): In-Person Workshop - Introduction to Developer Productivity Engineering Workshop at Droidcon San Francisco
- June 7 2:00 pm - 3:00 pm (US EDT): Virtual Training - Gradle Enterprise Developer User Training
- June 8 3:00 pm - 4:00 pm (EU CET): Virtual Training - Gradle Enterprise Developer User Training
- June 9 9:00 am - 12:00 pm (US PDT): Virtual Training - Maven Build Cache Deep Dive
- June 14 9:00 am - 12:00 pm (US PDT): Virtual Workshop - Introduction to Developer Productivity Engineering
- June 22 9:00 am - 12:00 pm (US PDT): Virtual Training - Gradle Build Cache Deep Dive
- July 14 1:00 pm - 2:00 pm (US EDT): DevProdEng Lowdown - DevProdEng Lowdown: How Uber does Developer Productivity Engineering
See the Gradle Training webpage for an up-to-date list of all upcoming educational and training events.
If you have some news you’d like us to share in the next issue, use #gradle on Twitter or send us an email with the details to newsletter@gradle.com.
Until next time!
—The Gradle Build Tool Team