Move versions plugin to plugin DSL (#331)

Summary:
Doesn't change how it works, but using the new recommended mechanism for loading plugins.
Pull Request resolved: https://github.com/facebook/flipper/pull/331

Reviewed By: jknoxville

Differential Revision: D13167476

Pulled By: passy

fbshipit-source-id: ac0ae925f5780136ce5c1fcb666faa79c19e049c
This commit is contained in:
Pascal Hartig
2018-11-23 06:16:38 -08:00
committed by Facebook Github Bot
parent 08cdb5e2e8
commit cadda77d74
2 changed files with 2 additions and 3 deletions

View File

@@ -5,14 +5,14 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.android.tools.build:gradle:3.2.1'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${GRADLE_BINTRAY_PLUGIN_VERSION}"
classpath "com.github.dcendents:android-maven-gradle-plugin:${ANDROID_MAVEN_GRADLE_PLUGIN_VERSION}" classpath "com.github.dcendents:android-maven-gradle-plugin:${ANDROID_MAVEN_GRADLE_PLUGIN_VERSION}"
classpath "com.github.ben-manes:gradle-versions-plugin:${GRADLE_VERSIONS_PLUGIN_VERSION}"
} }
} }
plugins { plugins {
id 'de.undercouch.download' version '3.4.3' id 'de.undercouch.download' version '3.4.3'
id 'com.github.ben-manes.versions' version '0.20.0'
id 'com.jfrog.bintray' version '1.8.4'
} }
ext.isSnapshot = { VERSION_NAME.endsWith('-SNAPSHOT') } ext.isSnapshot = { VERSION_NAME.endsWith('-SNAPSHOT') }

View File

@@ -16,7 +16,6 @@ LITHO_VERSION=0.20.1-SNAPSHOT
# Deps for publishing # Deps for publishing
GRADLE_BINTRAY_PLUGIN_VERSION=1.8.0 GRADLE_BINTRAY_PLUGIN_VERSION=1.8.0
GRADLE_VERSIONS_PLUGIN_VERSION=0.15.0
ANDROID_MAVEN_GRADLE_PLUGIN_VERSION=2.1 ANDROID_MAVEN_GRADLE_PLUGIN_VERSION=2.1
# Gradle internals # Gradle internals