...
Gradle
...
is
...
Gradle is an open-source build automation tool focused on flexibility and performance. Gradle build scripts are written using a Groovy or Kotlin DSL. Read about Gradle features to learn what is possible with Gradle.
...
- Download an
*-all
or "complete" distribution zip from https://services.gradle.org/distributions/ or https://gradle.org/releases/- Make sure the zip file contains
bin
andsrc
- Make sure the zip file contains
- Unzip the distribution
- Linux command:
unzip gradle.zip -d gradle
- Linux command:
- Copy the distribution to a suitable system directory.
- Windows suggested:
C:\gradle-78.51.1
- Linux suggested:
/opt/gradle-78.51.1
- Windows suggested:
- Create a version-less symbolic link. This makes it easy to upgrade. Use the link in
PATH
and in IDEs.- Unix command:
ln -s /opt/gradle-78.51.1/ /opt/gradle
- Windows command:
mklink C:\gradle
C:\gradle-78.51.1
- Unix command:
- Add Gradle
bin
folder to thePATH
environment variable.- Linux: Add
export PATH=$PATH:/opt/gradle/bin
to~/.bashrc
- Linux: Add
...
Now install Gradle:
sdk install gradle 78.61.1
Note, Gradle will be installed in a hidden folder located at (You may have to press Ctrl + H to view hidden folders in Ubuntu's file explorer):
~/.sdkman/candidates/gradle/78.61.1
Configuration
If you have not yet read the Gradle official documentation on the Build Environment, please do so now. This section will mostly contain the important highlights of that document. Gradle properties files are .properties files.
...