Gradle Quick Start for macOS 10.10 Yosemite BSD
The BSD Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest Gradle Enterprise Automation Tools on macOS 10.10 Yosemite Vervet i386/amd64 Unix Desktop/Server.
Gradle 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.
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.
Gradle Evolved Automation Features:
- Strong yet flexible conventions
- Enterprise level control capabilities
- Manageable and understandable builds
To the Gradle Installation Tutorial on macOS Unix Bottom you will find a Link to Hello-World Gradle Build Script Guide.
Download Latest Gradle Complete ReleaseGradle All .zip
Open a Terminal Shell Emulator
Applications > Utilities > Terminal
(Press “Enter” to Execute Commands)
How to Install Recommended Oracle Java JDK on macOSInstalling Oracle JDK for macOS
Check if Java Development Kit is Installed.
Unzip Gradle Archive into /tmp.
unzip -d /tmp/ $HOME/Downloads/gradle*.zip
Relocate Gradle Archive.
sudo mv /tmp/gradle* /opt/
If Got “User is Not in Sudoers file” then see: How to Enable sudo
Add Gradle Env Variables and Set 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:
Testing Gradle Installation.
(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 ScriptGradle Build Script Example