Gradle is a build tool that replaces XML based build scripts with an internal DSL that is based on the Groovy programming language.
It has gained a lot of traction recently. That this why I decided to take a closer look at it and share my findings on my blog.
This tutorial is written by a beginner, for a beginner. Its goal is to help us to get started with Gradle by solving real world problems one problem at a time.
Let’s get started.
Introducing: Getting Started With Gradle
This tutorial consists of the following blog posts:
- Getting Started With Gradle: Introduction describes how we can install Gradle, and provides a quick introduction to its build process and design philosophy.
- Getting Started With Gradle: Our First Java Project describes how we can compile and package a simple Java project.
- Getting Started With Gradle: Dependency Management describes how we can manage the dependencies of our projects.
- Running Unit Tests With Gradle is a free sample lesson of my Test With Spring course. It explains why we should categorize our tests by using JUnit 4 categories and describes how we can use Gradle for running unit tests which use JUnit 4 categories.
- Getting Started With Gradle: Creating a Binary Distribution describes how we can create a runnable binary distribution that doesn’t use the so called “fat jar” approach.
- Running Integration Tests With Gradle is a free sample lesson of my Test With Spring Course. This lesson is basically an updated version of my older blog posts that describe how we can run your integration tests with Gradle. It helps us to add custom test sets into our Gradle build, describes how we can configure the dependencies of our integration tests, and explains how we can run our integration tests with Gradle.
- Getting Started With Gradle: Integration Testing describes how you can keep your code and integration tests in the same project and create a separate directory for your integration tests.
- Getting Started With Gradle: Integration Testing With the TestSets Plugin describes how you can add integration tests to your Gradle build by using the Gradle TestSets plugin.
- Getting Started With Gradle: Creating a Multi-Project Build describes how we can create a Gradle build that has more than one module (also known as project).
- Getting Started With Gradle: Creating a Web Application Project describes how we can create a web application project that uses Java, package our web application into a WAR file, and run our web application in a development environment.
- Getting Started With Gradle: Creating a Spring Boot Web Application Project describes how we can create a Spring Boot web application project that uses Thymeleaf as a templating engine and provides us a way to monitor it.