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

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:

主站蜘蛛池模板: 荆门市| 普兰店市| 长乐市| 苏尼特右旗| 杭州市| 乌兰察布市| 贞丰县| 老河口市| 五常市| 白银市| 大渡口区| 黄冈市| 赤城县| 东城区| 监利县| 焉耆| 岫岩| 黄梅县| 南汇区| 达尔| 北宁市| 桂平市| 哈巴河县| 泗阳县| 衡南县| 西昌市| 卓资县| 阜阳市| 蛟河市| 云梦县| 长沙市| 望城县| 福建省| 文昌市| 永川市| 宝山区| 锡林郭勒盟| 七台河市| 阿尔山市| 焉耆| 临湘市|