- Java 9 Programming By Example
- Peter Verhas
- 175字
- 2021-07-02 23:37:32
Installing Gradle
To install Gradle, you will have to download the compiled binaries from the https://gradle.org/gradle-download/ website.
Again, I'd like to emphasize the importance of checking the download integrity using checksums. I have given a detailed way to do it in the section about Ant installation.
Unfortunately, the Gradle website does not provide the checksum values for the downloadable files.
Gradle is downloadable in the ZIP format. To unpack the file, you will have to use the unzip command:
$ unzip gradle-3.3-bin.zip
The created subdirectory is the usable binary distribution of Gradle. Usually, I move it under ~/bin, making it available only for my user on OS X. After that, you should add the bin directory of the installation to the PATH. To do that, you should edit the ~/.bashrc file and add the following lines:
export GRADLE_HOME=~/bin/gradle-3.3/
export PATH=${GRADLE_HOME}bin:$PATH
Then, restart the terminal application, or just type . ~/.bashrc and test the installation of Gradle, typing the following:
$ gradle -version
We get to the following output, as can be seen in this screenshot:

- Google Apps Script for Beginners
- 零起步玩轉(zhuǎn)掌控板與Mind+
- Photoshop智能手機APP UI設計之道
- Java技術(shù)手冊(原書第7版)
- R語言游戲數(shù)據(jù)分析與挖掘
- Java 11 Cookbook
- Learning Salesforce Einstein
- Expert Data Visualization
- Linux C編程:一站式學習
- Python計算機視覺和自然語言處理
- Java 從入門到項目實踐(超值版)
- Learning Android Application Testing
- Drupal 8 Development Cookbook(Second Edition)
- Python無監(jiān)督學習
- Swift Essentials(Second Edition)