How to Install Gradle Build Tool on Ubuntu 16.04/18.04/20.04 LTS

Gradle is a free and open-source construct instrument fundamentally utilized for Java ventures. Gradle encourages you to mechanize, manufacture and convey programming proficiently. Gradle utilizes Groovy item arranged programming language rather than XML to characterize the undertaking setups. Gradle additionally underpins numerous famous IDE stages, for example, Android Studio, Eclipse, IDEA, and NetBeans.

In this post, We will install gradle build tool on ubutnu 16.04, 18.04, 20.04.
Update System
$ sudo apt-get update -y
$ sudo apt-get install default-jdk -y
Gradle from PPA Repository
$ sudo apt-get install dirmngr wget apt-transport-https  software-properties-common -y
$ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys D7CC6F019D06AF36
$ sudo add-apt-repository ppa:cwchien/gradle
Install Gradle
$ sudo apt-get update
$ sudo apt-get install gradle -y

Bash Script

Use bash shell script to install Gradle build tool applicable for ubuntu 16.04, 18.04, 20.04

Copy and paste the given code in your file like install_gradle.sh

#!/bin/bash

sudo apt-get update -y
sudo apt-get install default-jdk -y
sudo apt-get install dirmngr wget apt-transport-https  software-properties-common -y
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys D7CC6F019D06AF36
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update -y
sudo apt-get install gradle -y


How to Install Gradle Build Tool on Ubuntu 16.04/18.04/20.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top