forked from uber/okbuck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.gradle
149 lines (137 loc) · 7.34 KB
/
dependencies.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// CI keeps gradle home cached based on the SHA of this file.
// Update below to invalidate the cache.
// Gradle Cache Version 3
def exclude = { dep, String... excludes ->
return dependencies.create(dep) {
for(e in excludes) {
if (e.contains(":")) {
throw new RuntimeException(
"Error while parsing exclusion " + e + " in dependency " + dep + "\n"
+ "Should specify either group name or module name, but never group:module.")
}
}
for(e in excludes) exclude group: e
for(e in excludes) exclude module: e
}
}
def versions = [
androidPlugin : "3.6.1",
androidTools : "26.6.1",
autovalue : "1.7.4",
avro : "1.10.0",
butterKnife : "10.2.1",
dagger : "2.28.3",
jna : "5.6.0",
kotlin : "1.3.72",
leakCanary : "1.5.4",
rocker : "1.3.0",
support : "28.0.0",
androidx : "1.1.0",
androidxMultidex : "2.0.0",
constraintLayout : "1.1.0",
sqldelight : "1.4.0",
]
def build = [
androidPlugin : "com.android.tools.build:gradle:${versions.androidPlugin}",
androidPluginApi : "com.android.tools.build:gradle-api:${versions.androidPlugin}",
bintrayPlugin : "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5",
butterKnifePlugin: "com.jakewharton:butterknife-gradle-plugin:${versions.butterKnife}",
commonsIo : "commons-io:commons-io:2.6",
commonsLang3 : "org.apache.commons:commons-lang3:3.9",
erroproneCompiler: "com.google.errorprone:error_prone_core:2.4.0",
errorproneJavac : "com.google.errorprone:javac:9+181-r4173-1",
errorpronePlugin : "net.ltgt.gradle:gradle-errorprone-plugin:1.2.1",
kotlinPlugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
kotlinAllOpen : "org.jetbrains.kotlin:kotlin-allopen:${versions.kotlin}",
manifestMerger : "com.android.tools.build:manifest-merger:${versions.androidTools}",
nullaway : "com.uber.nullaway:nullaway:0.7.10",
rockerPlugin : "com.fizzed:rocker-gradle-plugin:${versions.rocker}",
rockerRuntime : "com.fizzed:rocker-runtime:${versions.rocker}",
shadowJar : "com.github.jengelman.gradle.plugins:shadow:6.0.0",
sqlDelightPlugin : "com.squareup.sqldelight:gradle-plugin:${versions.sqldelight}",
jna : "net.java.dev.jna:jna:${versions.jna}",
jnaPlatform : "net.java.dev.jna:jna-platform:${versions.jna}",
mavenArtifact : "org.apache.maven:maven-artifact:3.6.2",
proguard : "net.sf.proguard:proguard-base:6.2.2",
]
def buildConfig = [
buildTools: "30.0.0",
compileSdk: 29,
minSdk : 21,
targetSdk : 29,
]
def apt = [
autoValue : "com.google.auto.value:auto-value:${versions.autovalue}",
autoValueAnnotations : "com.google.auto.value:auto-value-annotations:${versions.autovalue}",
autoValueGson : "com.ryanharter.auto.value:auto-value-gson:1.3.0",
autoValueParcel : "com.ryanharter.auto.value:auto-value-parcel:0.2.8",
butterKnifeCompiler : "com.jakewharton:butterknife-compiler:${versions.butterKnife}",
daggerCompiler : "com.google.dagger:dagger-compiler:${versions.dagger}",
daggerAndroidProcessor: "com.google.dagger:dagger-android-processor:${versions.dagger}",
javax : "org.glassfish:javax.annotation:10.0-b28",
]
def external = [
annotationApi : ["javax.annotation:javax.annotation-api:1.3.2", "com.github.pengrad:jdk9-deps:1.0"],
butterKnife : "com.jakewharton:butterknife:${versions.butterKnife}",
dagger : "com.google.dagger:dagger:${versions.dagger}",
daggerAndroid : "com.google.dagger:dagger-android-support:${versions.dagger}",
inferAnnotations: "com.facebook.infer.annotation:infer-annotation:0.18.0",
gson : "com.google.code.gson:gson:2.8.6",
kotlinExtension : "org.jetbrains.kotlin:kotlin-android-extensions:${versions.kotlin}",
kotlinStdlib : "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
leakCanary : "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
sqldelight : "com.squareup.sqldelight:android-driver:${versions.sqldelight}",
rxandroid : "io.reactivex.rxjava2:rxandroid:2.1.1",
rxjava : "io.reactivex.rxjava2:rxjava:2.2.19",
rxPermissions : "com.tbruyelle.rxpermissions2:rxpermissions:0.9.5",
sqlite : "com.pushtorefresh.storio3:sqlite:3.0.0",
xlogAndroidIdle : "com.github.promeg:xlog-android-idle:2.1.1",
avroIpc : "org.apache.avro:avro-ipc:${versions.avro}",
avroIpcTests : "org.apache.avro:avro-ipc:${versions.avro}:tests",
saxon : "net.sf.saxon:Saxon-HE:10.1",
scalaLibrary : "org.scala-lang:scala-library:2.13.3",
log4j : exclude("log4j:log4j:1.2.15", "jline", "jms", "jmxtools", "jmxri"),
guava : "com.google.guava:guava:29.0-jre",
]
def lint = [
lint : "com.android.tools.lint:lint:${versions.androidTools}",
lintApi : "com.android.tools.lint:lint-api:${versions.androidTools}",
lintChecks: "com.android.tools.lint:lint-checks:${versions.androidTools}",
lintGradle: "com.android.tools.lint:lint-gradle:${versions.androidTools}",
lintTests : "com.android.tools.lint:lint-tests:${versions.androidTools}",
]
def androidx = [
material : "com.google.android.material:material:${versions.androidx}",
annotations : "androidx.annotation:annotation:${versions.androidx}",
activity : "androidx.activity:activity:${versions.androidx}",
appCompat : "androidx.appcompat:appcompat:${versions.androidx}",
appCompatResource: "androidx.appcompat:appcompat-resources:${versions.androidx}",
recyclerView : "androidx.recyclerview:recyclerview:${versions.androidx}",
multidex : "androidx.multidex:multidex:${versions.androidxMultidex}",
constraintLayout : "androidx.constraintlayout:constraintlayout:${versions.constraintLayout}"
]
def test = [
assertj : "org.assertj:assertj-core:3.16.1",
espressoCore : "androidx.test.espresso:espresso-core:3.3.0-rc01",
espressoRules : "androidx.test:rules:1.3.0-rc01",
espressoRunner: "androidx.test:runner:1.3.0-rc01",
junit : "junit:junit:4.13",
kotlinTest : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
mockito : "org.mockito:mockito-core:3.4.0",
robolectric : "org.robolectric:robolectric:4.3.1",
scalaTest : "org.scalatest:scalatest_sjs1_2.13:3.2.0",
scalaTestJunit: "org.scalatestplus:junit-4-12_2.13:3.2.0.0",
testExt : "androidx.test.ext:junit:1.1.2-rc01",
]
ext.config = [
"build": buildConfig,
]
ext.deps = [
"androidx": androidx,
"apt" : apt,
"build" : build,
"external": external,
"lint" : lint,
"test" : test,
"versions": versions,
]