forked from firebase/quickstart-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
42 lines (38 loc) · 1.07 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
buildscript {
repositories {
jcenter()
mavenLocal()
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.2.0'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.17.0'
}
allprojects {
repositories {
jcenter()
mavenLocal()
maven { url 'https://maven.google.com' }
maven { url 'https://maven.fabric.io/public' }
}
// See: https://github.com/ben-manes/gradle-versions-plugin
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}