Gradle installation

1. Download, unzip, and put the unzip directory D:\Gradle\gradle-4.5.1\bin in the path of the environment variable.

2. Set the default cache path.

#Modify the default cache directory
# To modify the Gradle default cache directory, use the command gradle -g directory path, such as gradle -g D:\Gradle\.gradle

#Modify the global default repository
#Enter the init.d folder in the Gradle installation directory, create a new init.gradle file, and enter in this file
allprojects {
    repositories {
        maven {
            url 'http://maven.aliyun.com/nexus/content/groups/public/'
        }
    }
}

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326117917&siteId=291194637