-
Notifications
You must be signed in to change notification settings - Fork 226
/
dependencies.gradle
executable file
·94 lines (83 loc) · 2.9 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
/*
* Copyright (C) 2017. Uber Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
def versions = [
androidTest: '0.5',
archComponents: '1.0.0',
archRuntime: '1.0.3',
dokka: '0.9.15',
errorProne: '2.1.1',
kotlin: '1.1.51',
support: '26.1.0'
]
def build = [
buildToolsVersion: '26.0.2',
compileSdkVersion: 26,
ci: 'true' == System.getenv('CI'),
minSdkVersion: 14,
targetSdkVersion: 26,
checkerFramework: 'org.checkerframework:dataflow:2.1.14',
errorProne: "com.google.errorprone:error_prone_core:${versions.errorProne}",
nullAway: 'com.uber.nullaway:nullaway:0.1.4',
repositories: [
plugins: 'https://plugins.gradle.org/m2/'
],
gradlePlugins: [
android: 'com.android.tools.build:gradle:2.3.0',
apt: 'net.ltgt.gradle:gradle-apt-plugin:0.11',
dokka: "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}",
dokkaAndroid: "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}",
errorProne: 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.11',
kotlin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
]
]
def kotlin = [
stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
]
def misc = [
errorProneAnnotations: "com.google.errorprone:error_prone_annotations:${versions.errorProne}",
javaxExtras: "com.uber.javaxextras:javax-extras:0.1.0",
jsr305: 'com.google.code.findbugs:jsr305:3.0.2',
rxlifecycle: 'com.trello.rxlifecycle2:rxlifecycle:2.2.0'
]
def rx = [
android: 'io.reactivex.rxjava2:rxandroid:2.0.1',
java: 'io.reactivex.rxjava2:rxjava:2.1.0'
]
def support = [
annotations: "com.android.support:support-annotations:${versions.support}",
arch: [
lifecycle: [
compiler: "android.arch.lifecycle:compiler:${versions.archComponents}",
extensions: "android.arch.lifecycle:extensions:${versions.archComponents}",
runtime: "android.arch.lifecycle:runtime:${versions.archRuntime}"
]
]
]
def test = [
androidRunner: "com.android.support.test:runner:${versions.androidTest}",
androidRules: "com.android.support.test:rules:${versions.androidTest}",
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.36'
]
ext.deps = [
"build": build,
"kotlin": kotlin,
"misc": misc,
"rx": rx,
"support": support,
"test": test,
"versions": versions
]