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

@@ -1,7 +1,6 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
compileSdkVersion rootProject.compileSdkVersion compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion buildToolsVersion rootProject.buildToolsVersion
defaultConfig { defaultConfig {

View File

@@ -15,12 +15,19 @@ plugins {
id 'de.undercouch.download' version '3.4.3' 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 { subprojects {
repositories { repositories {
google() google()
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
jcenter() jcenter()
if (isSnapshot()) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
} }
} }

View File

@@ -1,5 +1,5 @@
# POM publishing constants # POM publishing constants
VERSION_NAME=0.6.17 VERSION_NAME=0.6.18-SNAPSHOT
GROUP=com.facebook.flipper GROUP=com.facebook.flipper
POM_URL=https://github.com/facebook/flipper POM_URL=https://github.com/facebook/flipper
POM_SCM_URL=https://github.com/facebook/flipper.git POM_SCM_URL=https://github.com/facebook/flipper.git
@@ -12,7 +12,7 @@ POM_DEVELOPER_ID=facebook
POM_DEVELOPER_NAME=facebook POM_DEVELOPER_NAME=facebook
# Shared version numbers # Shared version numbers
LITHO_VERSION=0.18.0 LITHO_VERSION=0.18.1-SNAPSHOT
# Deps for publishing # Deps for publishing
GRADLE_BINTRAY_PLUGIN_VERSION=1.8.0 GRADLE_BINTRAY_PLUGIN_VERSION=1.8.0