gradle属性文件在gradle项目中位于哪里? [英] where is gradle properties file located in gradle project?
问题描述
Grails/Gradle项目中的gradle.properties
文件在哪里?
我尝试过但无法找到它.
我已经使用命令行构建了Gradle项目.
以及该文件的主要目的是什么.
Where does the gradle.properties
file located in Grails/Gradle project?
I tried but not able to find it.
I have build the Gradle project using command line.
and what is the major purpose of that file.
推荐答案
gradle.properties
文件有2个可能的位置:
There are 2 possible location for gradle.properties
file:
- 项目构建目录
- 让用户住家
注意,gradle.properties
文件不是必须位于项目文件中.如果不存在,请在gradle用户主目录中查找它(如用户指南中所述:它由GRADLE_USER_HOME
环境变量定义,如果未设置,则默认为USER_HOME/.gradle
).
Note, gradle.properties
file is not necessary located within your projects files. If it's absent, look for it in your gradle user home directory (as in users guide said: it's defined by the GRADLE_USER_HOME
environment variable, which if not set defaults to USER_HOME/.gradle
).
它用于配置Java流程,用于构建项目.
It's used to configure Java process, used to build your project.
您可以在 Gradle官方用户指南中了解有关此内容的更多信息. a>
You can read more about it in the Gradle official user guide
这篇关于gradle属性文件在gradle项目中位于哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!