Ubuntu add Gradle to env PATH

add gradle to environment path

 

Unzip the distribution zip file in the directory of your choosing, e.g.:

$ mkdir /opt/gradle
$ unzip -d /opt/gradle gradle-6.6.1-bin.zip
$ ls /opt/gradle/gradle-6.6.1
LICENSE  NOTICE  bin  getting-started.html  init.d  lib  media

And then

Configure your PATH environment variable to include the bin directory of the unzipped distribution, e.g.:

 $ export PATH=$PATH:/opt/gradle/gradle-6.6.1/bin

Leave a Reply