如何更改 Gradle 下载位置 [英] How to change Gradle download location
本文介绍了如何更改 Gradle 下载位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始学习gradle.但是,当我使用 Gradle 构建 Spring 时;它将依赖 jar 下载到
I am starting to learn gradle. However when I am building Spring with Gradle; it downloads the dependency jars to
C:UsersUserName.gradle
有什么办法可以指定 Gradle 将依赖项 jar 下载到特定位置?就像我可以在 Maven 中指定存储库位置一样.
Is there any way I can specify Gradle to download the dependency jars to a specific location? Just like I can specify repository location in Maven.
系统信息:视窗 7 64 位Gradle 1.0 版
System information: Windows 7 64bit Gradle version 1.0
推荐答案
您可以设置GRADLE_USER_HOME
环境变量、gradle.user.home
系统属性或--gradle-user-home
命令行参数.
You can set the GRADLE_USER_HOME
environment variable, gradle.user.home
system property, or --gradle-user-home
command line parameter.
这篇关于如何更改 Gradle 下载位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文