groovy
Install
SDKMAN! (The Software Development Kit Manager)
This tool makes installing Groovy on any Bash platform (Mac OSX, Linux, Cygwin, Solaris or FreeBSD) very easy.
Simply open a new terminal and enter:
$ curl -s get.sdkman.io | bash
Follow the instructions on-screen to complete installation.
Open a new terminal or type the command:
$ source “$HOME/.sdkman/bin/sdkman-init.sh”
Then install the latest stable Groovy:
$ sdk install groovy
After installation is complete and you’ve made it your default version, test it with:
$ groovy -version
That’s all there is to it!
Gradle
Install
sudo unzip gradle-3.x-all.zip -d /mnt/d/gradle/
#config
vim ~/.bashrc
#add
export GRADLE_HOME=/mnt/d/gradlexx
export PATH=$GRADLE_HOME/bin:$PATH
#source
source .bashrc
#finish
gradle -v