This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
build.gradle
66 lines (59 loc) · 1.91 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
62
63
64
65
66
buildscript {
ext.versions = [
'kotlin': '1.8.0',
'dagger': '2.33',
'incap' : '0.2',
]
ext.deps = [
'dagger': "com.google.dagger:dagger:${versions.dagger}",
'daggerCompiler': "com.google.dagger:dagger-compiler:${versions.dagger}",
'autoService': 'com.google.auto.service:auto-service:1.1.1',
'autoCommon': 'com.google.auto:auto-common:1.2.2',
'junit': 'junit:junit:4.13.2',
'truth': 'com.google.truth:truth:1.1.5',
'kotlin': "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}",
'javaPoet': 'com.squareup:javapoet:1.13.0',
'guava': 'com.google.guava:guava:26.0-jre',
'compileTesting': 'com.google.testing.compile:compile-testing:0.21.0',
'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.7.0',
'incap': [
'runtime': "net.ltgt.gradle.incap:incap:${versions.incap}",
'processor': "net.ltgt.gradle.incap:incap-processor:${versions.incap}",
],
]
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.android.tools.build:gradle:4.2.2'
}
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
plugins.withId('signing') {
signing {
def signingKey = findProperty('signingKey')
def signingPassword = ''
useInMemoryPgpKeys(signingKey, signingPassword)
}
}
}