-
Notifications
You must be signed in to change notification settings - Fork 145
/
build.gradle
61 lines (54 loc) · 1.66 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
58
59
60
61
buildscript {
ext {
// Plugin versions
androidGradlePluginVersion = "4.2.1"
gradleVersionsPluginVersion = "0.36.0"
sonarqubeGradlePluginVersion = "3.2.0"
// Dependency versions
androidXAppCompatVersion = "1.2.0"
androidXWebKitVersion = "1.4.0"
androidXTestVersion = "1.3.0"
junitVersion = "4.13.2"
robolectricVersion = '4.5.1'
}
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$gradleVersionsPluginVersion"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:$sonarqubeGradlePluginVersion"
}
}
apply plugin: 'com.github.ben-manes.versions'
allprojects {
group "de.psdev.licensesdialog"
version "2.3.0-SNAPSHOT"
repositories {
google()
mavenCentral()
jcenter()
}
apply from: rootProject.file('gradle/versioning.gradle')
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'preview', 'b', 'ea'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]$qualifier[.\d-+]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
wrapper {
gradleVersion = '7.0.2'
distributionType = "all"
}