-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
35 lines (31 loc) · 960 Bytes
/
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
apply plugin: 'com.github.ben-manes.versions'
buildscript {
repositories {
maven { url 'https://maven.google.com' }
jcenter()
google()
}
dependencies {
classpath group:'com.android.tools.build', name:'gradle', version: '3.4.2'
classpath group:'com.github.ben-manes', name:'gradle-versions-plugin', version:"${GRADLE_VERSIONS_PLUGIN_VERSION_MATCHER}"
}
}
allprojects {
repositories {
maven { url 'https://maven.google.com' }
jcenter()
}
// Forces all dependencies to be resolved. Useful in continuous integration
// to populate the dependency cache.
// https://discuss.gradle.org/t/download-all-dependencies/6294
task resolveAllDependencies {
doLast {
configurations.all { it.resolve() }
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
}
}
}