Gradle Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:


<tt>gradle.properties</tt> 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.
<tt>gradle.properties</tt> 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.
==settings.gradle==
==build.gradle==


=Build Environment Configuration=
=Build Environment Configuration=

Revision as of 22:16, 25 April 2018

Internal

Overview

Configuration Files

$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.

settings.gradle

build.gradle

Build Environment Configuration

https://docs.gradle.org/current/userguide/build_environment.html

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

Gradle Command-Line Interface

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.

Environment Variables

Project Properties