Installing Gradle

What is Gradle?

According to Gradle's website Gradle is a "modern open source polyglot build automation system". To translate, it is the software that you are going to use to automate a few tasks you'll commonly have to do in the class. The most common of these tasks will be running checkstyle and submitting homeworks. Gradle will allow you to use a single command to run checkstyle on all of your code for an assignment and generate a report with the error messages and number of errors and their line numbers and file locations etc. It will also allow you to use a single command to submit all the correct files for a homework automatically.

NOTE: Gradle requires that you have a JDK (Java Development Kit) to be installed so make sure that you finish the Java installation instructions before installing Gradle!

NOTE: to use Gradle once you have it installed:


Download gradle from here.

NOTE: You can get the "Complete distribution" if you want the sources and/or offline documentation for gradle but that will not be necessary for this class. If you don't want those then download the "Binary only distribution".

To install Gradle:

  1. Download the zip file and then move it to your Local Disk (C:) directory.
  2. Extract the zip file my right clicking on it and selecting "extract here"
  3. Modify your Path environment variable to include the path to the bin folder in the folder that you just extracted.

Make sure to verify your installation.

Mac OS X

  1. Make sure that you have installed Homebrew before proceeding! Look at the top of the resources page on this website for instructions on installing Homebrew.
  2. Run the following commands in the Terminal:
  3. brew update

    brew install gradle

Make sure to verify your installation.


In order to install Gradle on Linux just run the following commands in this order (or their equivalent with your package manager):

  1. sudo add-apt-repository ppa:cwchien/gradle

  2. sudo apt-get update

  3. sudo apt-get install gradle

Make sure to verify your installation.

All Operating Systems

To confirm that your Gradle installation was successful:

Gradle's Website

Here's Gradle's official website. It has the download for gradle, documentation, getting started help, etc.