Properties
Learn about Gradle properties.
We'll cover the following
Gradle properties
The Gradle.properties
file allows us to specify Gradle properties and other properties available to our build script. We could also specify build-specific values that we don’t want to keep in our versioning system (such as nexus credentials). For example, we can specify JVM arguments, and if we want to use the Gradle daemon:
org.gradle.daemon=true
org.gradle.jvmargs=-Xms128m -Xmx1024m
deploymentPassword=123
This would tell Gradle to pass -Xms128m -Xmx1024m
command-line arguments to Java. These arguments start with a minimum of 128 megabytes of memory and maximum of 1024 megabytes for Java 8. It would also add deployment
password as an available property in the build file.
Get hands-on with 1400+ tech skills courses.