Gradle Fedora 30 - Installing
And Relocate Gradle Archive.
Copysudo 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 sudoFollow to Setup Gradle Env Variables and Path.
Copyecho "GRADLE_HOME=/opt/gradle-[X.Y]" > $HOME/.bashrc
Just Replace the Gradle Version to [X.Y] in above Command
Copyecho 'export PATH=$PATH:$GRADLE_HOME/bin' > $HOME/.bashrc
Then to Load New SetUp:
Copybash
Finally, to Test Gradle Installation.
Copygradle -v
(Optional) Speed Up Gradle Builds with Gradle Daemon
Copyecho "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