forked from Evernote/android-job
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
61 lines (55 loc) · 1.52 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
options.compilerArgs << "-Xlint:deprecation"
}
}
ext {
compileSdkVersion = 31
targetSdkVersion = compileSdkVersion
minSdkVersion = 14
playServicesVersion = '17.0.0'
workVersion = '2.7.0'
stethoVersion = '1.5.0'
junitVersion = '4.13.2'
assertjVersion = '3.6.2'
mockitoVersion = '3.12.4'
robolectricVersion = '4.7.3'
}
allprojects {
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.arch.core'
&& details.requested.name.contains('core-common')) {
details.useVersion '2.0.1'
}
if (details.requested.group == 'androidx.collection'
&& details.requested.name.contains('collection')) {
details.useVersion '1.0.0'
}
if (details.requested.group == 'androidx.lifecycle'
&& details.requested.name.contains('lifecycle-runtime')) {
details.useVersion '2.0.0'
}
}
}
}
task updateWrapper(type: Wrapper) {
gradleVersion = '7.4.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}