如何设置gradle缓存位置? [英] How to set gradle cache location?

查看:470
本文介绍了如何设置gradle缓存位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse package explorer中看到以下信息:

=在这里输入图片描述>



是否有可能改变这个位置?

解决方案

全局你可以设置

lockquote
Gradle用户主目录(由GRADLE_USER_HOME环境变量定义,默认为USER_HOME / .gradle)[...]

另见 https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties



否则对于每个手动构建:


-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) [...]

See also https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆