This shows that Gradle
is up to date:
thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
How do I upgrade to Gradle
4.x? Preferably, with umake rather than SDKMAN! which seems to be what they suggest.
(I don't want to update all the packages due to a slow connection.)
You could use the ppa for the almost-always latest version
or SDKMAN for the latest version
Advantages of the ppa
Advantages of sdkman: latest version supplied by gradle themselves.
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
Now this project will use Gradle 4.9, independent of what's installed. However, you need to remember to run Gradle through the wrapper, i.e., run
./gradlew
instead of plaingradle
.The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
download from https://gradle.org/releases/
pick the binary-only link as per
after you expand the download just update your PATH env var to pickup this new binary
and add following line to bottom of ~/.bashrc
confirm this works by issuing