Gradle 7.0 was released on 9th April 2021, and includes some important new features and improvements. Discover what’s new, and what the benefits could be for your Gradle project.
In this article you’ll learn how to view the dependency tree, so you can understand fully how you project is built and resolve common issues.
A powerful Gradle feature is its ability to setup dependencies between tasks, creating a task graph. Learn all about the task graph, how to add tasks to it, and how to print it out.
A common source of confusion is understanding the difference between the gradle and gradlew commands. Learn what each command does and when to use it.
Did you every look at a Gradle build script and end up scratching your head? In this article you’ll learn the most important components to make understanding build scripts a breeze.
Annotation processing is a Java compilation option which has been around since Java 5. It enables the generation of additional files during compilation, such as classes or documentation. Gradle abstracts the complexity of passing the correct compilation options to Java with the annotationProcessor dependency configuration, which we’ll explore in detail in this article with a […]
Using the Gradle wrapper means that a project can be fixed to a specific version of Gradle. If you want to update Gradle to a newer version though, follow the simple steps in this article. What’s my current Gradle version? Assuming your project is using the Gradle wrapper, which it most likely is, run ./gradlew […]
Gradle version 6 supports both the implementation and compile dependency configurations. Why are they both there and which one should you use? Let’s find out with the two simple rules described in this article. Quick answer: use the implementation configuration and never compile, BUT read on for some important caveats Ways to declare dependencies When […]
Gradle project properties provide an easy way to customise builds which may need to run slightly differently each time. In this article you’ll learn the most effective ways to use and set properties, along with some common scenarios you might come across in your Gradle project. Why do we need project properties in a Gradle […]
1. Introduction Spring Boot is a framework to build Java applications with minimal boilerplate code required, whereas Gradle is a highly configurable build automation tool. Using Gradle to build your Spring Boot application is a good approach, but the process is made infinitely easier using the Spring Boot Gradle plugin to provide build functionality specific […]