Gradle Wrapper: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
The corresponding JAR file and the wrapper configuration is stored in the project directory under [[Gradle_Files_Layout#gradle|gradle/wrapper]]. | The corresponding JAR file and the wrapper configuration is stored in the project directory under [[Gradle_Files_Layout#gradle|gradle/wrapper]]. | ||
There is a "gradle wrapper" built-in task, which can be configured from build.gradle as follows: | |||
<syntaxhighlight lang='groovy'> | |||
wrapper { | |||
gradleVersion = '6.8.3' | |||
distributionType = Wrapper.DistributionType.ALL | |||
} | |||
</syntaxhighlight> | |||
=Configuration= | =Configuration= | ||
==<tt>gradlew-wrapper.properties</tt>== | ==<tt>gradlew-wrapper.properties</tt>== | ||
Maintained in the project under gradle/wrapper/gradlew-wrapper.properties: | Maintained in the project under <code>gradle/wrapper/gradlew-wrapper.properties</code>: | ||
<syntaxhighlight lang='text'> | <syntaxhighlight lang='text'> | ||
distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||
Line 17: | Line 24: | ||
=Operations= | =Operations= | ||
* [[Gradle Wrapper | * [[Gradle_Wrapper_Operations#Install_Gradle_Wrapper_in_a_Project|Install Gradle Wrapper in a Project]] | ||
=Organizatorium= | =Organizatorium= | ||
* Each wrapper comes with sources: ~/.gradle/wrapper/dists/gradle-6.2.2-all/2k4hz1yffuhb6ob9prdg10tx/gradle-6.2.2/src | * Each wrapper comes with sources: ~/.gradle/wrapper/dists/gradle-6.2.2-all/2k4hz1yffuhb6ob9prdg10tx/gradle-6.2.2/src |
Latest revision as of 22:26, 30 June 2021
Internal
Overview
The corresponding JAR file and the wrapper configuration is stored in the project directory under gradle/wrapper. There is a "gradle wrapper" built-in task, which can be configured from build.gradle as follows:
wrapper {
gradleVersion = '6.8.3'
distributionType = Wrapper.DistributionType.ALL
}
Configuration
gradlew-wrapper.properties
Maintained in the project under gradle/wrapper/gradlew-wrapper.properties
:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Operations
Organizatorium
- Each wrapper comes with sources: ~/.gradle/wrapper/dists/gradle-6.2.2-all/2k4hz1yffuhb6ob9prdg10tx/gradle-6.2.2/src