forked from leinardi/FloatingActionButtonSpeedDial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dependencies.gradle
64 lines (59 loc) · 2.05 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
/*
* Copyright 2021 Roberto Leinardi.
*
* 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.
*/
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
versions.android_checkstyle_plugin = "1.1.0"
versions.android_gradle_plugin = "4.2.1"
versions.android_material = "1.3.0"
versions.androidx_appcompat = "1.3.0"
versions.androidx_cardview = "1.0.0"
versions.androidx_constraintlayout = "2.0.4"
versions.androidx_recyclerview = "1.2.0"
versions.constraint_layout = "1.1.3"
versions.detekt = "1.14.2"
versions.dokka = "1.4.32"
versions.errorprone_javac = "9+181-r4173-1"
versions.errorprone_core = "2.4.0"
versions.errorprone_plugin = "2.0.1"
versions.espresso = "3.0.1"
versions.gradle_versions_plugin = "0.38.0"
versions.junit = "4.12"
versions.kotlin = "1.5.0"
versions.material = "1.0.0"
versions.mockito = "2.13.3"
versions.mockito_all = "1.10.19"
versions.nullaway = "0.9.1"
versions.publish_plugin = "1.1.0"
versions.violations_plugin = "1.68.3"
ext.versions = versions
def commitCount = 'git rev-list --count HEAD'.execute().text.trim()
def build_versions = [:]
build_versions.min_sdk = 14
build_versions.target_sdk = 30
build_versions.java_version = JavaVersion.VERSION_1_8
build_versions.version_code = commitCount.isNumber() ? commitCount as int : 0
build_versions.version_name = "3.2.0"
ext.build_versions = build_versions
static def addRepos(RepositoryHandler handler) {
handler.google()
handler.mavenCentral()
handler.gradlePluginPortal()
}
ext.addRepos = this.&addRepos