From 2dc79c3ec165f22d1131fd5dcff50fc900d274bd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 6 Dec 2019 00:13:47 +0530 Subject: Update dependencies (#588) * Add gradle-versions plugin and cleanup common configuration * build: Update all dependencies Signed-off-by: Harsh Shandilya --- build.gradle | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index dae64bea..cebef7da 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,10 @@ buildscript { } } +plugins { + id "com.github.ben-manes.versions" version "0.27.0" +} + allprojects { repositories { google() @@ -32,12 +36,12 @@ subprojects { google() jcenter() } - if (plugins.hasPlugin('kotlin-android')) { + pluginManager.withPlugin('kotlin-android') { dependencies { - implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:' + versions.kotlin + implementation deps.kotlin.stdlib8 } } - if (it.name == 'app') { + if (name == 'app') { apply plugin: 'com.android.application' } else { apply plugin: 'com.android.library' -- cgit v1.2.3