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

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:

主站蜘蛛池模板: 天等县| 镶黄旗| 静海县| 昌吉市| 博湖县| 雷州市| 淮滨县| 江西省| 崇义县| 尼木县| 兴业县| 长垣县| 铜山县| 大姚县| 沅陵县| 客服| 喜德县| 台安县| 玛曲县| 武义县| 萨迦县| 盘山县| 榕江县| 万荣县| 茶陵县| 定安县| 竹北市| 榆树市| 云和县| 两当县| 育儿| 繁昌县| 上栗县| 德化县| 临邑县| 双柏县| 锦屏县| 龙里县| 武隆县| 上思县| 兴山县|