gradle application

Official website to download

http://services.gradle.org/distributions/

Unpack and configure the environment

1, extract the directory you want to gradle

2, configure the environment variables

GRADLE_HOME=D:\gradle-4.4.1

3, increase% GRADLE_HOME% \ bin in the Path

4, configure the local repository path

GRADLE_USER_HOME=C:\Users\Administrator\.m2\repository

5. After completing the above configuration, open cmd command-line tool, enter gradle -v, view the installation was successful.

IDEA configured gradle

1, adding build.gradle file

repositories {

// 1) disposed remote repository maven idea canceled in the offline work
maven {URL 'http://maven.aliyun.com/nexus/content/groups/public/'}
// 2) arranged to use the local gradle maven repository
 mavenLocal ( )
// 3) using the default maven central repository
 mavenCentral ()
}

 

Guess you like

Origin www.cnblogs.com/wangfg/p/11033199.html