How to Install Gradle on Linux Mint 19 Easy Guide

August 25, 2018 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Gradle Linux Mint 19.x Installation Guide

Hello Mint User! The Tutorial Shows You Step-by-Step How to Install Gradle on Linux Mint 19.x Tara/Tessa/Tina/Tricia LTS 32/64-bit GNU/Linux Desktop/Server.

First, Gradle is the next evolutionary step in JVM-based build tools. It draws on lessons learned from established tools like Ant and Maven and takes their best ideas to the next level.

Because following a build-by-convention approach, Gradle allows for declaratively modeling your problem domain using a powerful and expressive domain-specific language (DSL) implemented in Groovy instead of XML.

Furthermore, the Gradle Automation Features are:

  • Strong yet flexible conventions
  • Enterprise level control capabilities
  • Manageable and understandable builds

Finally, to the Gradle Installation Tutorial on Mint Linux Bottom You will find a Link to Hello-World Gradle Build Script Guide.

How to Install Gradle on Linux Mint 19.x Tara/Tessa/Tina/Tricia - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How to Install Gradle on Linux Mint 19.x Tara/Tessa/Tina/Tricia - Open Terminal
  2. Download Latest Gradle Complete Release

    Gradle All .zip
  3. How to Install Recommended Oracle Java JDK on Mint

    Install Oracle JDK for Mint
  4. Check if Java Development Kit is Installed

    java -version
  5. Unzip Gradle Archive into /tmp

    unzip -d /tmp/ $HOME/Downloads/gradle*.zip
    rm $HOME/Downloads/gradle*.zip
  6. And Relocate Gradle Archive

    sudo mv /tmp/gradle* /opt/

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

  7. Follow to Setup Gradle Env Variables and Path

    echo "GRADLE_HOME=/opt/gradle-[X.Y]" >> $HOME/.bashrc

    Just Replace the Gradle Version to [X.Y] in above Command

    echo 'export PATH=$PATH:$GRADLE_HOME/bin' >> $HOME/.bashrc

    Then to Load New SetUp:

    bash
  8. Finally, to Test Gradle Installation

    gradle -v
  9. (Optional) Speed Up Gradle Builds with Gradle Daemon

    echo "org.gradle.daemon=true" >> $HOME/.gradle/gradle.properties

    Once you have globally enabled the Gradle Daemon in this way, all your builds will take advantage a Speed Boost.

  10. Getting-Started with Gradle Automation Build Script

    Gradle Build Script Example

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,