Install latest version of Gradle

Hi,

I need to use the latest version of gradle, currently 5.6. However I already have a gradle package installed on my Fedora 30:

[xxx@wasteland ~]$ sudo dnf info gradle
Last metadata expiration check: 1:14:49 ago on Sun 25 Aug 2019 01:04:31 AM CEST.
Installed Packages
Name         : gradle
Version      : 4.4.1
Release      : 4.fc30
Architecture : noarch
Size         : 11 M
Source       : gradle-4.4.1-4.fc30.src.rpm
Repository   : @System
From repo    : updates
Summary      : Build automation tool

4.4.1 is an old version, but it seems there is no newer package available in Fedora repos.

I know I can download the latest version from gradle.org, unzip it and add it’s bin to my PATH, but I would have prefferred a package.
I don’t remember if I’ve installed gradle on my own in the past or it came with the distribution. When I try to uninstall it, 45 dependent packages will be removed as well. I don’t know if it’s safe to do that. Does F30 need it for something else?

Your options:

  • File a bug report about a new version available.
  • Build the packages yourself.
  • Use third-party builds if you understand all the risks.
  • Use the unpackaged version you already mentioned.

If you don’t know the names of those packages, then perhaps you don’t need them.

It is neither a critical system dependency, nor it is pre-installed in the Fedora Workstation edition.

5 Likes

That’s what I wanted to know.
Thanks.

Hi,
You could try ‘sdkman’.
I found this to be the easiest why to obtain Gradle and java.
But saying that, I would prefer to use a fedora package as well.