Gradle.properties: Difference between revisions
No edit summary |
|||
Line 13: | Line 13: | ||
=Project Root gradle.properties= | =Project Root gradle.properties= | ||
Conventionally, this is where the version of the project is stored: | |||
<syntaxhighlight lang='text'> | |||
version=1.0-SNAPSHOT | |||
</syntaxhighlight> |
Revision as of 00:34, 22 March 2019
Internal
Overview
'gradle.properties' files are also used to define properties. There are two kinds of 'gradle.properties' files. If both files are present, their content is merged and the configuration that comes from the user home directory takes precedence over the configuration that comes from the project root directory. Form a security perspective, it makes sense to use the user home directory if the project is checked into a repository and we do not want to maintain sensitive information in that file. The project root gradle.properties is important because it can be stored in source control, so the entire team working on the project can share the same configuration.
Gradle User Home gradle.properties
This file is stored in Gradle user home directory ~/.gradle/gradle.properties, conventionally referred to as GRADLE_USER_HOME.
Project Root gradle.properties
Conventionally, this is where the version of the project is stored:
version=1.0-SNAPSHOT