Switch to Litho snapshot releases

Summary:
This allows breaking changes in Litho to be landed.
I'm also adding some helpers to determine if Flipper itself
is currently in a release or snapshot release train.

N.B. We don't publish snapshot releases for Flipper
right now, but will in the future where this will come in
handy.

Reviewed By: jknoxville

Differential Revision: D9359035

fbshipit-source-id: d21b607eca5d57caf4cc34234f6ba3cb0d8f307d
This commit is contained in:
Pascal Hartig
2018-08-16 06:43:44 -07:00
committed by Facebook Github Bot
parent 11ba553ab8
commit cded1ceead
3 changed files with 9 additions and 3 deletions

View File

@@ -15,12 +15,19 @@ plugins {
id 'de.undercouch.download' version '3.4.3'
}
ext.isSnapshot = { VERSION_NAME.endsWith('-SNAPSHOT') }
ext.isRelease = { ['uploadArchives', 'bintrayUpload'].any { gradle.startParameter.taskNames.contains(it) } }
subprojects {
repositories {
google()
mavenLocal()
mavenCentral()
jcenter()
if (isSnapshot()) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
}