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.)
upgrade gradleasThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed. I have to run thissudo apt-get -f installthensudo apt-get -f install gradle. This way, it deletes the previous one and installs the latest from scratch. – Anum Sheraz Jul 20 '18 at 15:55sudo apt-get -f installfixed its problem. – serv-inc Jul 21 '18 at 09:52apt) while there's 5.3.1 available for download from the official website. – naXa stands with Ukraine Mar 30 '19 at 12:00sudo apt remove gradleand then install the new version with the ppa to update to the newest version. – Osvald Laurits Nov 27 '19 at 12:42sudo snap install gradlewill install Gradle 7.2. You may need toapt-get remove gradleif/usr/bin/comes earlier than/snap/binin your$PATHor specify the full path until you can use a Gradle wrapper (see my answer below). – Robert Aug 22 '23 at 21:28sudo: add-apt-repository: command not found– George Shalvashvili Dec 24 '23 at 13:58sudo apt-get install software-properties-common– serv-inc Jan 02 '24 at 08:20