Install the Latest Gradle for Fedora 26
Hi! The Tutorial shows you Step-by-Step How to Install the Latest Gradle on Fedora 26 GNU/Linux Desktop/Server.
First, Gradle for Fedora 26 is the next evolutionary step in JVM-based Build Tools. It draws on lessons learned from established tools like Ant and Maven and takes their best ideas to the next level.
Because following a build-by-convention approach, Gradle allows for declaratively modeling your problem domain using a powerful and expressive domain-specific language (DSL) implemented in Groovy instead of XML.
Moreover, the Gradle Automation Features are:
- Strong yet flexible conventions
- Enterprise level control capabilities
- Manageable and understandable builds
Finally, to the Gradle Installation Tutorial on Fedora Linux Bottom you will find a Link to Hello-World Gradle Build Script Guide.
-
Download Latest Gradle Complete Release
-
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
How to Install Recommended Oracle Java JDK on Fedora
-
Check if Java Development Kit is Installed.
java -version
-
Unzip Gradle Archive into /tmp.
unzip -d /tmp/ $HOME/Downloads/gradle*.zip
rm $HOME/Downloads/gradle*.zip
Or Double-Click on Archive to Use the Archive Manager GUI.
-
And Relocate Gradle Archive.
sudo mv /tmp/gradle* /opt/
This for a System-Wide installation, for a local one simply put into your Home…
If Got “User is Not in Sudoers file” then see: How to Enable sudo -
Follow to Setup Gradle Env Variables and Path.
echo "GRADLE_HOME=/opt/gradle-[X.Y]" > $HOME/.bashrc
Just Replace the Gradle Version to [X.Y] in above Command
echo 'export PATH=$PATH:$GRADLE_HOME/bin' > $HOME/.bashrc
Then to Load New SetUp:
bash
-
Finally, to Test Gradle Installation.
gradle -v
-
(Optional) Speed Up Gradle Builds with Gradle Daemon
echo "org.gradle.daemon=true" > $HOME/.gradle/gradle.properties
Once you have globally enabled the Gradle Daemon in this way, all your builds will take advantage a Speed Boost.
-
Getting-Started with Gradle Automation Build Script