2019-02-01 14:26:58 +00:00
|
|
|
include ':app', ':architecture'
|
2019-03-21 19:41:41 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// Local Development overrides
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
Properties localProperties = null;
|
|
|
|
String settingAppServicesPath = "substitutions.application-services.dir";
|
|
|
|
|
|
|
|
if (file('local.properties').canRead()) {
|
|
|
|
localProperties = new Properties()
|
|
|
|
localProperties.load(file('local.properties').newDataInputStream())
|
|
|
|
logger.lifecycle('Local configuration: loaded local.properties')
|
|
|
|
} else {
|
|
|
|
logger.lifecycle('Local configuration: absent local.properties; proceeding as normal.')
|
|
|
|
}
|
|
|
|
|
|
|
|
if (localProperties != null) {
|
2019-08-15 21:33:40 +00:00
|
|
|
localProperties.each { prop ->
|
|
|
|
gradle.ext.set("localProperties.${prop.key}", prop.value)
|
|
|
|
}
|
|
|
|
|
2019-03-21 19:41:41 +00:00
|
|
|
String appServicesLocalPath = localProperties.getProperty(settingAppServicesPath);
|
|
|
|
|
|
|
|
if (appServicesLocalPath != null) {
|
|
|
|
logger.lifecycle("Local configuration: substituting application-services modules from path: $appServicesLocalPath")
|
2019-07-17 22:09:47 +00:00
|
|
|
includeBuild(appServicesLocalPath)
|
2019-03-21 19:41:41 +00:00
|
|
|
} else {
|
|
|
|
logger.lifecycle("Local configuration: application-services substitution path missing. Specify it via '$settingAppServicesPath' setting.")
|
|
|
|
}
|
|
|
|
}
|