Gradle Configuration
Internal
Overview
Files and Paths
Gradle Home
If Gradle was installed with Homebrew on Mac, then the Gradle home is
/usr/local/Cellar/gradle/<version>/libexec
Gradle User Home
The Gradle user home is the directory indicated by $GRADLE_USER_HOME or $USER/.gradle if the environment variable is not set.
Gradle Project Files
. | |- build.gradle |- settings.gradle |- gradlew +- gradle | +-wrapper | +- ...
build.gradle
The project-level configuration script that contains task configuration for the current project. For more details:
settings.gradle
This file specifies how the project and sub-projects are structured.
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.