Install Gradle On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Install Gradle On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

gradle

Gradle is an advanced open source build automation system.

Maintainer: Debian Java Maintainers



Section: java

Install gradle

  • Debian apt-get install gradle Click to copy
  • Ubuntu apt-get install gradle Click to copy
  • Alpine OS apk add gradle Click to copy
  • Arch Linux pacman -S gradle Click to copy
  • Kali Linux apt-get install gradle Click to copy
  • Fedora dnf install gradle Click to copy
  • Raspbian apt-get install gradle Click to copy
  • macOS brew install gradle Click to copy

Gradle is an advanced open source build automation system.

How to use gradle?

Below are few example commands for gradle that you can use in the terminal.

Compile a package:
gradle buildClick to copy
Exclude test task:
gradle build -x testClick to copy
Run in offline mode to prevent gradle from accessing the network during builds:
gradle build --offlineClick to copy
Clear the build folder:
gradle cleanClick to copy
Compile and Release package:
gradle assembleReleaseClick to copy
Install the latest version of gradle in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the gradle just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of gradle from the respository and install it in your computer/server.