如何设置gradle缓存位置? [英] How to set gradle cache location?
问题描述
我在Eclipse package explorer中看到以下信息:
=在这里输入图片描述>是否有可能改变这个位置?
全局你可以设置
lockquote
Gradle用户主目录(由GRADLE_USER_HOME环境变量定义,默认为USER_HOME / .gradle)[...]
否则对于每个手动构建:
-g, - -gradle-user-home
指定Gradle用户主目录。默认值是用户主目录中的.gradle目录。
请参阅 https://gradle.org/docs/current/userguide/gradle_command_line.html 。
I see the following info in Eclipse package explorer:
Is it possible to change this location?
Globally you can set
[...] Gradle user home directory (defined by the "GRADLE_USER_HOME" environment variable, which [...] defaults to USER_HOME/.gradle) [...]
Otherwise for every build manually:
-g, --gradle-user-home Specifies the Gradle user home directory. The default is the .gradle directory in the user's home directory.
See https://gradle.org/docs/current/userguide/gradle_command_line.html.
这篇关于如何设置gradle缓存位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!