Install and set up with Gradle under Windows

Download the latest version of Gradle compressed package on Gradle official website https://gradle.org/releases, unzip To a certain path, for example, D:\Gradle sets the Gradle environment variable and adds a variable name named GRADLE_HOME to the environment variable, and the value is the decompression path of Gradle, for example, D:\Gradle appends %GRADLE_HOME%\bin; after the path. Installation Open the Windows command line tool, enter gradle -v, and display the version number to indicate that the installation is successful. Verify the installation. Modify the default cache directory. Modify the default cache directory of Gradle. You can use the command gradle -g directory path, such as gradle -g D:\Gradle\.gradle to modify The global default warehouse enters the init.d folder under the Gradle installation directory, creates a new init.gradle file, and enters allprojects {repositories {maven {url’http://maven.aliyun.com/nexus/content/groups/ public/’}} Save and close it

On the Gradle official website https://gradle.org/releases Download the latest version of the Gradle compressed package and unzip it to a certain path, for example, D:\Gradle sets the Gradle environment variable environment variable to add a variable name named GRADLE_HOME, and the value is the decompression path of Gradle, For example, D:\Gradle append %GRADLE_HOME%\bin; after the path to verify the installation. Open the Windows command line tool, enter gradle -v, and the version number is displayed, indicating that the installation is successful. Verify the installation. Modify the default cache directory. Modify the Gradle default cache directory. You can use the command gradle -g directory path, for example, gradle -g D:\Gradle\.gradle modify the global default warehouse, enter the init.d folder under the Gradle installation directory, create a new init.gradle file, and enter allprojects {repositories {maven {Url’http://maven.aliyun.com/nexus/content/groups/public/’}} Save and close it

On Gradle official website https://gradle.org/releases Download the latest version of the Gradle compressed package and unzip it to a certain path, for example, D:\Gradle sets the Gradle environment variable environment variable to add a variable name named GRADLE_HOME, and the value is the decompression path of Gradle, For example, D:\Gradle append %GRADLE_HOME%\bin; after the path to verify the installation. Open the Windows command line tool, enter gradle -v, and the version number is displayed, indicating that the installation is successful. Verify the installation. Modify the default cache directory. Modify the Gradle default cache directory. You can use the command gradle -g directory path, for example, gradle -g D:\Gradle\.gradle modify the global default warehouse, enter the init.d folder under the Gradle installation directory, create a new init.gradle file, and enter allprojects {repositories {maven { url’http://maven.aliyun.com/nexus/content/groups/public/’}}}} Just save and close

Leave a Comment

Your email address will not be published.