forked from cashapp/InflationInject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (47 loc) · 1.55 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
buildscript {
ext.versions = [
'kotlin': '1.2.71',
]
ext.deps = [
'dagger': 'com.google.dagger:dagger:2.17',
'daggerCompiler': 'com.google.dagger:dagger-compiler:2.17',
'autoService': 'com.google.auto.service:auto-service:1.0-rc4',
'autoCommon': 'com.google.auto:auto-common:0.10',
'junit': 'junit:junit:4.12',
'truth': 'com.google.truth:truth:0.42',
'kotlin': "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}",
'javaPoet': 'com.squareup:javapoet:1.11.1',
'guava': 'com.google.guava:guava:26.0-jre',
'compileTesting': 'com.google.testing.compile:compile-testing:0.15',
'robolectric': 'org.robolectric:robolectric:4.0-alpha-3',
'inject': 'javax.inject:javax.inject:1',
'android': 'com.google.android:android:4.1.1.4',
'androidxAnnotations': 'androidx.annotation:annotation:1.0.0',
'dexMemberList': 'com.jakewharton.dex:dex-member-list:3.2.1',
]
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.android.tools.build:gradle:3.3.0-alpha13'
}
repositories {
mavenCentral()
google()
jcenter()
}
}
subprojects {
repositories {
mavenCentral()
google()
jcenter()
}
// Guava is depended on transitively. Force it to the same version to prevent missing methods.
// This occurs when the compilation classpath picks 23.x whereas tests need 25.x.
configurations.all {
it.resolutionStrategy {
it.force(deps.guava)
}
}
group = GROUP
version = VERSION_NAME
}