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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There are 2 possible location for gradle.properties
file:
- project build dir
- gradle user home
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
).
It's used to configure Java process, used to build your project.
You can read more about it in the Gradle official user guide