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:
parent
5e1927d068
commit
2dc79c3ec1
2 changed files with 20 additions and 16 deletions
10
build.gradle
10
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'
|
||||
|
|
|
@ -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'
|
||||
]
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue