I've been using Gradle now for years. I just installed Linux Mint 18.1 (Serena) and wanted to see which version apt would install to make my life easy. So I ran this to see which version apt would install:
Woh, ok that's too old for me, so time to go download and install manually.
Note: You will need the Java JDK, I used OpenJDK 1.8.0_111 which was in apt.
I wrote a similar blog a while back that has info on building a sample Gradle app, here. The sample app should still work, and so you can reference that if you want to build a quick Java app. Gradle has changed a bit though, so the build files are not completely up to date. In addition, the blog has instructions on how to install Gradle, these will be similar and still work, but I like this way better.
Here are the steps I used to install Gradle manually:
- Download the latest version of Gradle from here: http://www.gradle.org/downloads. I grabbed gradle-3.3-bin.zip
- Move the download to /opt
- Unzip the archive
- Use update-alternatives command to create the symbolic links to the gradle command
- Try it to make sure it works