This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
executable file
·63 lines (53 loc) · 1.74 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.0"
}
}
}
}
allprojects {
repositories {
jcenter()
google()
maven {
url 'https://maven.google.com/'
}
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
appcompatVersion = '27.1.0'
junitVersion = '4.12'
androidTestSupportVersion = '0.5'
lintVersion = '25.3.0'
}
ext.deps = [
appcompat : "com.android.support:appcompat-v7:${appcompatVersion}",
// Test deps
junit : "junit:junit:${junitVersion}",
androidTestRunner : "com.android.support.test:runner:${androidTestSupportVersion}",
androidTestRules : "com.android.support.test:rules:${androidTestSupportVersion}",
// Lint
lintapi : "com.android.tools.lint:lint-api:${lintVersion}",
lintchecks : "com.android.tools.lint:lint-checks:${lintVersion}"
]