Gradle modify the local repository

Problem Description

  • Gradle default local warehouse C:\Users\用户名\.gradle, did not want to let things take up the C drive has been downloaded resources.

Solution

  • New environment variable name: GRADLE_USER_HOMEvariable values D:\Gradle\.gradleare: ;
  • This time Gradle on Eclipse will complain (original path dependence can not find), right-project -> Gradle -> Refresh Gradle Project ... can be.

Guess you like

Origin www.cnblogs.com/wumz/p/10958256.html