Commit 7b6d61de authored by MozLando's avatar MozLando
Browse files

Merge #5129



5129: Allow Glean to be substituted for local development r=Dexterp37,travis79 a=badboy
Co-authored-by: default avatarJan-Erik Rediger <janerik@fnordig.de>
parents 7f57dffa ed6c36ad
......@@ -48,6 +48,7 @@ gradle.projectsLoaded { ->
Properties localProperties = null;
String settingAppServicesPath = "substitutions.application-services.dir";
String settingGleanPath = "substitutions.glean.dir";
if (file('local.properties').canRead()) {
localProperties = new Properties()
......@@ -71,4 +72,19 @@ if (localProperties != null) {
} else {
logger.lifecycle("Local configuration: application-services substitution path missing. You may specify it via '$settingAppServicesPath' setting.")
}
String gleanLocalPath = localProperties.getProperty(settingGleanPath);
if (gleanLocalPath != null) {
logger.lifecycle("Local configuration: substituting glean module from path: $gleanLocalPath")
includeBuild(gleanLocalPath) {
dependencySubstitution {
substitute module('org.mozilla.telemetry:glean') with project(':glean')
substitute module('org.mozilla.telemetry:glean-forUnitTests') with project(':glean')
}
}
} else {
logger.lifecycle("Local configuration: glean substitution path missing. You may specify it via '$settingGleanPath' setting.")
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment