-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
57 lines (54 loc) · 1.76 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
57
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
/** Project-wide versions */
VER = [
kotlin: '1.3.72'
]
}
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${VER.kotlin}"
// classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
classpath 'com.google.gms:google-services:4.3.3'
classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:8.1.2"
classpath 'io.realm:realm-gradle-plugin:6.1.0'
classpath 'io.fabric.tools:gradle:1.31.2'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.28.0'
}
allprojects {
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public'}
maven { url 'https://jitpack.io' }
}
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors()
}
}
}