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

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:

主站蜘蛛池模板: 房山区| 宣威市| 茌平县| 郧西县| 凤台县| 九龙县| 五指山市| 平果县| 霞浦县| 宁明县| 牡丹江市| 阿勒泰市| 营山县| 周口市| 太和县| 亳州市| 法库县| 师宗县| 墨竹工卡县| 永善县| 康平县| 海伦市| 珠海市| 兰州市| 囊谦县| 辛集市| 东台市| 北海市| 梁河县| 根河市| 阜南县| 综艺| 延川县| 三穗县| 荣成市| 南乐县| 罗山县| 东乡县| 巴南区| 石林| 渭南市|