Home » Tag Archives: Gradle (page 3)

Tag Archives: Gradle

Using Gradle to Build & Apply AST Transformations

gradle-logo

Recently, I wanted to both build and apply local ast transformations in a Gradle project. While I could find several examples of how to write transformations, I couldn’t find a complete example showing the full build process. A transformation has to be compiled separately and then put on the classpath, so its source can’t simply sit in the rest of ...

Read More »

Getting Started with Gradle: Creating a Binary Distribution

gradle-logo

After we have created a useful application, the odds are that we want to share it with other people. One way to do this is to create a binary distribution that can be downloaded from our website. This blog post describes how we can a binary distribution that fulfils the following requirements:           Our binary distribution ...

Read More »

Publish JAR artifact using Gradle to Artifactory

gradle-logo

So I have wasted (invested) a day or two just to find out how to publish a JAR using Gradle to a locally running Artifactory server. I used Gradle Artifactory plugin to do the publishing. I was lost in endless loop of including various versions of various plugins and executing all sorts of tasks. Yes, I’ve read documentation before. It’s ...

Read More »

Gradle Goodness: Getting More Dependency Insight

gradle-logo

In most of our projects we have dependencies on other code, like libraries or other projects. Gradle has a nice DSL to define dependencies. Dependencies are grouped in dependency configurations. These configuration can be created by ourselves or added via a plugin. Once we have defined our dependencies we get a nice overview of all dependencies in our project with ...

Read More »

Getting Started with Gradle: Dependency Management

gradle-logo

It is challenging, if not impossible, to create real life applications which don’t have any external dependencies. That is why dependency management is a vital part of every software project. This blog post describes how we can manage the dependencies of our projects with Gradle. We will learn to configure the used repositories and the required dependencies. We will also ...

Read More »

Getting Started with Gradle: Our First Java Project

java-logo

This blog post describes how we can compile and package a simple Java project by using Gradle. Our Java project has only one requirement: Our build script must create an executable jar file. In other words, we must be able to run our program by using the command:         java -jar jarfile.jar Let’s find out how we ...

Read More »

Java Build Tools: Ant vs Maven vs Gradle

java-logo

In the beginning there was Make as the only build tool available. Later on it was improved with GNU Make. However, since then our needs increased and, as a result, build tools evolved. JVM ecosystem is dominated with three build tools: Apache Ant with Ivy Maven Gradle   Ant with Ivy Ant was the first among “modern” build tools. In ...

Read More »

Docker Containers With Gradle in 4 Steps

docker-logo

 Do you need to create a Docker image from your Java web app? Are you using Gradle? If so, then you are only 4 steps away from Docker nivana. For this example, I’m going to use a simple Spring Boot application. You can find all the source code in my Github repository dubbed galoshe. If you haven’t had a chance ...

Read More »

Getting Started with Gradle: Introduction

gradle-logo

Gradle is a build tool which replaces XML based build scripts with an internal DSL which is based on Groovy programming language. It has gained a lot of traction recently and that is why I decided to take a closer look at it. This blog post is the first part of my Gradle tutorial, and it has two goals: to ...

Read More »

Automating the Continuous Integration of Android Projects With Gradle Using Jenkins on Windows

gradle-logo

This post will show how to automate the deployment process of an Android Application using Jenkins Continuous Integration – to build the project, run the unit tests (if any), archive the built artifacts and run the Android lint reports. 1. Install Jenkins as a Windows Service Navigate to jenkins-ci.org website using an Internet browser and download the Windows native package ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials