官术网_书友最值得收藏!

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:

主站蜘蛛池模板: 扶沟县| 锦州市| 靖州| 宜都市| 朝阳市| 临夏县| 获嘉县| 普洱| 兴义市| 景德镇市| 海盐县| 保靖县| 两当县| 班玛县| 方正县| 清徐县| 石楼县| 隆化县| 苗栗市| 富裕县| 古交市| 库车县| 绥中县| 和硕县| 通海县| 金昌市| 尉氏县| 遂平县| 肥东县| 新绛县| 嘉峪关市| 丹棱县| 修武县| 兴和县| 德令哈市| 临高县| 定襄县| 色达县| 湘潭县| 黄冈市| 三都|