July 2015
Intermediate to advanced
284 pages
5h 41m
English
We cannot make a software available on different operating systems, or different environments without configuring it dynamically. One approach to configure software is by using the properties file or environment properties. The following are the different ways Gradle provides to configure properties to build.gradle:
ext closuregradle.propertiesWe saw many examples in Chapter 3, Managing Task, of adding custom properties to a project using the ext closure. Thus, we will not discuss the topic in this chapter.
Gradle provides a default mechanism of reading the properties file using gradle.properties. You can add the gradle.properties file in any of the following locations: ...
Read now
Unlock full access