diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2019-12-06 00:13:47 +0530 |
---|---|---|
committer | Aditya Wasan <adityawasan55@gmail.com> | 2019-12-06 00:13:47 +0530 |
commit | 2dc79c3ec165f22d1131fd5dcff50fc900d274bd (patch) | |
tree | 2dc1d91243fb691db970ffb02c7fd95a74688e7b | |
parent | 5e1927d068b33554b1ea983d8791ca6e4c6db101 (diff) |
Update dependencies (#588)
* Add gradle-versions plugin and cleanup common configuration
* build: Update all dependencies
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r-- | build.gradle | 10 | ||||
-rw-r--r-- | dependencies.gradle | 26 |
2 files changed, 20 insertions, 16 deletions
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' diff --git a/dependencies.gradle b/dependencies.gradle index ed9e13b4..93e185b6 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -14,23 +14,23 @@ ext.versions = [ ext.deps = [ gradle_plugin: [ android: 'com.android.tools.build:gradle:3.5.2', - kotlin: 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60', - spotless: 'com.diffplug.spotless:spotless-plugin-gradle:3.26.0' + kotlin: 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61', + spotless: 'com.diffplug.spotless:spotless-plugin-gradle:3.26.1' ], kotlin: [ - stdlib8: 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' + stdlib8: 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61' ], androidx: [ annotation: 'androidx.annotation:annotation:1.1.0', - appcompat: 'androidx.appcompat:appcompat:1.1.0', + appcompat: 'androidx.appcompat:appcompat:1.2.0-alpha01', biometric: 'androidx.biometric:biometric:1.0.0', cardview: 'androidx.cardview:cardview:1.0.0', constraint_layout: 'androidx.constraintlayout:constraintlayout:2.0.0-beta3', - core_ktx: 'androidx.core:core-ktx:1.2.0-beta02', + core_ktx: 'androidx.core:core-ktx:1.2.0-rc01', documentfile: 'androidx.documentfile:documentfile:1.0.1', - material: 'com.google.android.material:material:1.2.0-alpha01', + material: 'com.google.android.material:material:1.2.0-alpha02', preference: 'androidx.preference:preference:1.1.0', recycler_view: 'androidx.recyclerview:recyclerview:1.0.0' ], @@ -45,15 +45,15 @@ ext.deps = [ ], testing: [ - junit: 'junit:junit:4.13-rc-1', + junit: 'junit:junit:4.13-rc-2', koin_test: 'org.koin:koin-test:2.0.1', - mockito_core: 'org.mockito:mockito-core:3.1.0', + mockito_core: 'org.mockito:mockito-core:3.2.0', androidx: [ - runner: 'androidx.test:runner:1.3.0-alpha02', - rules: 'androidx.test:rules:1.3.0-alpha02', - junit: 'androidx.test.ext:junit:1.1.2-alpha02', - espresso_core: 'androidx.test.espresso:espresso-core:3.3.0-alpha02', - espresso_intents: 'androidx.test.espresso:espresso-intents:3.3.0-alpha02' + runner: 'androidx.test:runner:1.3.0-alpha03', + rules: 'androidx.test:rules:1.3.0-alpha03', + junit: 'androidx.test.ext:junit:1.1.2-alpha03', + espresso_core: 'androidx.test.espresso:espresso-core:3.3.0-alpha03', + espresso_intents: 'androidx.test.espresso:espresso-intents:3.3.0-alpha03' ] ] ] |