Update dependencies (#588)

* Add gradle-versions plugin and cleanup common configuration

* build: Update all dependencies

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-12-06 00:13:47 +05:30 committed by Aditya Wasan
parent 5e1927d068
commit 2dc79c3ec1
2 changed files with 20 additions and 16 deletions

View file

@ -17,6 +17,10 @@ buildscript {
} }
} }
plugins {
id "com.github.ben-manes.versions" version "0.27.0"
}
allprojects { allprojects {
repositories { repositories {
google() google()
@ -32,12 +36,12 @@ subprojects {
google() google()
jcenter() jcenter()
} }
if (plugins.hasPlugin('kotlin-android')) { pluginManager.withPlugin('kotlin-android') {
dependencies { 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' apply plugin: 'com.android.application'
} else { } else {
apply plugin: 'com.android.library' apply plugin: 'com.android.library'

View file

@ -14,23 +14,23 @@ ext.versions = [
ext.deps = [ ext.deps = [
gradle_plugin: [ gradle_plugin: [
android: 'com.android.tools.build:gradle:3.5.2', android: 'com.android.tools.build:gradle:3.5.2',
kotlin: 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60', kotlin: 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61',
spotless: 'com.diffplug.spotless:spotless-plugin-gradle:3.26.0' spotless: 'com.diffplug.spotless:spotless-plugin-gradle:3.26.1'
], ],
kotlin: [ kotlin: [
stdlib8: 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' stdlib8: 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61'
], ],
androidx: [ androidx: [
annotation: 'androidx.annotation:annotation:1.1.0', 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', biometric: 'androidx.biometric:biometric:1.0.0',
cardview: 'androidx.cardview:cardview:1.0.0', cardview: 'androidx.cardview:cardview:1.0.0',
constraint_layout: 'androidx.constraintlayout:constraintlayout:2.0.0-beta3', 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', 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', preference: 'androidx.preference:preference:1.1.0',
recycler_view: 'androidx.recyclerview:recyclerview:1.0.0' recycler_view: 'androidx.recyclerview:recyclerview:1.0.0'
], ],
@ -45,15 +45,15 @@ ext.deps = [
], ],
testing: [ testing: [
junit: 'junit:junit:4.13-rc-1', junit: 'junit:junit:4.13-rc-2',
koin_test: 'org.koin:koin-test:2.0.1', 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: [ androidx: [
runner: 'androidx.test:runner:1.3.0-alpha02', runner: 'androidx.test:runner:1.3.0-alpha03',
rules: 'androidx.test:rules:1.3.0-alpha02', rules: 'androidx.test:rules:1.3.0-alpha03',
junit: 'androidx.test.ext:junit:1.1.2-alpha02', junit: 'androidx.test.ext:junit:1.1.2-alpha03',
espresso_core: 'androidx.test.espresso:espresso-core:3.3.0-alpha02', espresso_core: 'androidx.test.espresso:espresso-core:3.3.0-alpha03',
espresso_intents: 'androidx.test.espresso:espresso-intents:3.3.0-alpha02' espresso_intents: 'androidx.test.espresso:espresso-intents:3.3.0-alpha03'
] ]
] ]
] ]