Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

  1. Download an *-all or "complete" distribution zip from https://services.gradle.org/distributions/ or https://gradle.org/releases/
    1. Make sure the zip file contains bin and src
  2. Unzip the distribution
    1. Linux command: unzip gradle.zip -d gradle
  3. Copy the distribution to a suitable system directory.
    1. Windows suggested: C:\gradle-78.51.1
    2. Linux suggested: /opt/gradle-78.51.1
  4. Create a version-less symbolic link. This makes it easy to upgrade. Use the link in PATH and in IDEs.
    1. Unix command: ln -s /opt/gradle-78.51.1/ /opt/gradle
    2. Windows command: mklink C:\gradle C:\gradle-78.51.1
  5. Add Gradle bin folder to the PATH environment variable.
    1. Linux: Add export PATH=$PATH:/opt/gradle/bin to ~/.bashrc

...

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.

...