当前位置:网站首页>gradle-wrapper.jar description

gradle-wrapper.jar description

2022-08-11 05:46:00 FussyCat

This article is reproduced from the original article of the blogger "Master Niuba": https://blog.csdn.net/niuba123456/article/details/81074340

Gradle-Wrapper is to simplify the installation and deployment of Gardle. If Gardle is not deployed locally, use Gardle-Wrapper;

gradle-wrapper is located in the wrapper directory in the gradle directory under the project root directory;

  1. gradle-wrapper.zip
    The jar package required by gradle-warpper;

  2. gradle-wrapper.properties
    When building the project, it will automatically find out whether to download the corresponding gradle version according to the gradle-wrapper.properties property, if not, download it from the URL of distributionUrl
    ;

2.1 distributionBase and distributionPath

distributionBase and distributionPath are used together to specify the storage location after gradle decompression;

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
GRADLE_USER_HOME represents the user directory, windows system: c:\window.gradle, linux is $HOME/.gradle;

2.2 zipStoreBase and zipStorePath
zipStoreBase and zipStorePath are used together to specify the storage location for downloading gradle.zip;

zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2.3 distributionUrl
distributionUrl specifies the download address of a certain version of gradle

gradle is divided into 3 versions:

gradle-versionName-all.zip: This is the full version with various binaries, source files and offline documentation;

gradle-versionName-bin.zip: This is the executable version, only the executable (binary) is included

gradle-versionName-src.zip: This is the source code version, which only contains the source code and cannot be used to build projects or learn to use;

Download path: https://services.gradle.org/distributions/+one of 3

eg: Download the full version of gradle 4.4:

https://services.gradle.org/distributions/gradle-4.4-all.zip

Note: AndroidStuido needs to set character transfer: https://services.gradle.org/distributions/gradle-4.4-all.zip

原网站

版权声明
本文为[FussyCat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110512506587.html