Gradle Configuration: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
| | | | ||
+-- build.gradle | +-- build.gradle | ||
+-- settings.gradle | +-- settings.gradle | ||
+-- gradlew | |||
+-- gradle | +-- gradle | ||
| | |||
+-- | |||
==build.gradle== | ==build.gradle== |
Revision as of 23:55, 30 April 2018
Internal
Overview
Configuration Files
. | +-- build.gradle +-- settings.gradle +-- gradlew +-- gradle | +--
build.gradle
settings.gradle
This file specifies how the project and sub-projects are structured.
$HOME/.gradle
The default Gradle user home.
gradle.properties
gradle.properties files can be placed either in Gradle user home directory or in the project root directory. The configuration that comes from the user home directory takes precedence over the configuration that comes from the project root directory.
Build Environment Configuration
Gradle behavior is influenced by configuration provided with one or more of the following configuration mechanisms, listed below in the descending order of their precedence:
Command-Line Flags
System Properties
System properties are stored in a gradle.properties file.
Gradle Properties
Gradle properties are "org.gradle.*" system properties. They are typically stored in a gradle.properties in the project root directory or in Gradle user home.