Gradle is a powerful build automation tool used for building, testing and deploying Java applications. In this tutorial, we will show you how to install Gradle on Fedora Server latest.
Before you begin, make sure that your system is up-to-date with the latest software packages. You can do this by running the following command:
sudo dnf update
Gradle requires Java to be installed on the system. If you don't have Java installed, you can install it using the following command:
sudo dnf install java
Once the Java installation is complete, you can verify it by running the following command:
java --version
To download Gradle, navigate to the official website at http://gradle.org/. Click on the "Download" button and select the latest version of Gradle.
Once the download is complete, extract the contents of the archive to the /opt
directory using the following command:
sudo mkdir /opt/gradle
sudo unzip -d /opt/gradle gradle-x.x.x-bin.zip
Replace gradle-x.x.x-bin.zip
with the name of the archive you downloaded in Step 2.
To be able to use Gradle, you need to set the GRADLE_HOME
environment variable to the directory where Gradle is installed. To do this, add the following line to the ~/.bashrc
file:
export GRADLE_HOME=/opt/gradle/gradle-x.x.x
Again, make sure to replace gradle-x.x.x
with the version of Gradle you downloaded.
To be able to use Gradle from any directory, you need to add the Gradle binary directory to the system path. To do this, add the following line to the ~/.bashrc
file:
export PATH=$PATH:$GRADLE_HOME/bin
To verify that Gradle is installed and working correctly, run the following command:
gradle -v
This command should output the version of Gradle you installed.
Congratulations! You have successfully installed Gradle on Fedora Server latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!