当前位置:网站首页>Gradle download and installation configuration

Gradle download and installation configuration

2022-06-21 19:56:00 Shandong steamed bun

One 、Gradle download

1. Download address

https://services.gradle.org/distributions/

  • For example, I downloaded gradle-6.7.1-bin.zip
  • Sure Ctrl+F Search version number directly

2. decompression

  • Unzip the package into a folder , For example, I unzipped it to D Discoid :D:\Gradle

Two 、Gradle Installation configuration

  • Press down Windows+R, The run window will open , Then input sysdm.cpl The environment variable setting page opens

1. To configure GRADLE_HOME

 Insert picture description here

2. To configure Path

  • stay Path add to %GRADLE_HOME%\bin

3. Test the installation for success

  • open cmd, Input gradle -v
  • As shown in the figure below, the installation is successful
     Insert picture description here

4.( Choose to do ) To configure Gradle、Maven Use the same local warehouse

  • If..., is also installed locally Gradle and Maven, So you can configure Gradle Of Jar Package download directory and Maven Agreement , This avoids repeated downloads Jar package , Cause a waste of space and time .
  • Configure environment variables :GRADLE_USER_HOME
  • The value is Maven Warehouse Path for , Let's say mine is :D:\apache-maven-3.6.3\LocalRepository
  • As shown in the figure :
     Insert picture description here
原网站

版权声明
本文为[Shandong steamed bun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211812003034.html