-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
44 lines (36 loc) · 1.15 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'dependencies.gradle'
addRepos(repositories)
dependencies {
classpath gradlePlugins.android
classpath gradlePlugins.kotlin
classpath gradlePlugins.realm
classpath gradlePlugins.crashlytics
}
}
allprojects {
addRepos(repositories)
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group.startsWith('android.arch') && !details.requested.name.startsWith('navigation')) {
print(details.requested.group)
details.useVersion '1.1.1'
}
if (details.requested.group.equals('com.android.support') && !details.requested.name.startsWith('multidex')) {
print(details.requested.group)
details.useVersion '27.1.1'
}
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500"
}
}