-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
56 lines (50 loc) · 1.87 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.0'
if (getGradle().getStartParameter().getTaskNames().toString().toLowerCase().contains('release') ||
getGradle().getStartParameter().getTaskNames().toString().contains('dependencyUpdates')) {
classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.6'
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
// id 'com.vanniktech.android.junit.jacoco' version '0.16.0'
id 'com.github.kt3k.coveralls' version '2.12.2'
id 'com.github.ben-manes.versions' version '0.47.0'
}
allprojects {
repositories {
mavenCentral()
google()
maven {
url 'https://jitpack.io'
}
//noinspection JcenterRepositoryObsolete,GrDeprecatedAPIUsage
jcenter() // TODO: find alternate repository for the RikkaApps' FontProvider
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Will ensure the Gradle Versions Plugin only alerts me to available upgrades to proper release versions
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'b', 'preview'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}