Skip to content

Commit

Permalink
Bug 1581979 - Use -SNAPSHOT versions locally to enable the local Geck…
Browse files Browse the repository at this point in the history
…oView substitution flow. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D46235
  • Loading branch information
Ricky Stewart committed Dec 11, 2019
1 parent 1840cdc commit c484432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mobile/android/geckoview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ android.libraryVariants.all { variant ->
apply plugin: 'maven-publish'

version = computeVersionNumber()
if (!mozconfig.substs.MOZILLA_OFFICIAL && !mozconfig.substs.MOZ_ANDROID_FAT_AAR_ARCHITECTURES) {
// Use -SNAPSHOT versions locally to enable the local GeckoView substitution flow.
version = "${version}-SNAPSHOT"
}

publishing {
publications {
Expand Down
1 change: 1 addition & 0 deletions substitute-local-geckoview.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ configurations.all { config ->
// timestamp already, but let's try to avoid some class of cache
// invalidation error while we're here.
strategy.cacheDynamicVersionsFor 0, 'seconds'
strategy.cacheChangingModulesFor 0, 'seconds'
}
}
}
Expand Down

0 comments on commit c484432

Please sign in to comment.