forked from firebase/codelab-friendlychat-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (39 loc) · 918 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
36
37
38
39
40
41
42
43
44
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.google.gms:google-services:4.3.4'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.27.0'
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
}
def isNonStable = { candidate ->
return ['alpha', 'beta', 'rc', 'SNAPSHOT'].any { word ->
return candidate.version.contains(word)
}
}
def isBlackListed = { candidate ->
def blacklist = [
// ...
]
return blacklist.any { word ->
return candidate.toString().contains(word)
}
}
dependencyUpdates {
rejectVersionIf {
isNonStable(it.candidate) || isBlackListed(it.candidate)
}
}
}