gradle Property
Creates a Provider whose value is fetched from the Gradle property of the given name.
The property value is resolved from the following sources, in order of priority:
- Command-line project properties (
-Parguments) - System properties with the
org.gradle.project.prefix - Environment variables with the
ORG_GRADLE_PROJECT_prefix gradle.propertiesin the Gradle User Home directorygradle.propertiesin the build root directorygradle.propertiesin the Gradle installation directory
Note that this method resolves properties at the build level. It does not include properties from gradle.properties files in subproject directories, nor does it include extra properties or other properties set dynamically on individual org.gradle.api.Project instances.
More information on project properties.
Return
the provider for the Gradle property, never returns null
Since
6.2
Parameters
property Name
the name of the Gradle property