Wie installiere ich Groovy 2.5 auf Ubuntu 16.04?

Wie installiere ich Groovy 2.5 auf Ubuntu 16.04?

sudo apt-get install groovy bietet mir:

groovy -v
Groovy Version: 1.8.6 JVM: 1.8.0_131 Vendor: Oracle Corporation OS: Linux

Allerdings ist diese Version von Groovy sehr alt. Wie installiere ich die neuste Version? - 2.5?

Antwort1

$ sudo apt-get install groovy2
$ groovy -v
Groovy Version: 2.4.5 JVM: 1.8.0_144 Vendor: Oracle Corporation OS: Linux

Ubuntu 16.04.3

Antwort2

Das Problem kann durch Befolgen dieser Anleitung gelöst werden:http://groovy-lang.org/install.html

curl -s get.sdkman.io | bash

source "$HOME/.sdkman/bin/sdkman-init.sh"

sdk install groovy

verwandte Informationen