Instructions for fedora 36
install java. curently gradle does not work with jdk higher than 11, so we would need to:
sudo dnf install java-11-openjdk-devel.x86_64
if other version is already installed, use:
sudo alternatives --config java
download gradle-<version>-bin.zip from: https://services.gradle.org/distributions/
make sure that /opt/gradle directory exists;
sudo mkdir -p /opt/gradle
make sure that gradle in in the search path:
export PATH=$PATH:/opt/gradle/bin
unzip gradle in the above directory;
sudo unzip -d /opt/gradle gradle-<version>-bin.zip
create a link to the desired gradle version:
sudo ln -s /opt/gradle/gradle-<version>-bin /opt/gradle/gradle
if a link already exists to a different version, delete it first:
sudo rm /opt/gradle/gradle
TODO