-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (60 loc) · 1.68 KB
/
build.gradle.kts
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
62
63
64
65
plugins {
id("com.github.ben-manes.versions") version Versions.Build.DEPENDENCY_UPDATES
}
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath(Dependencies.Build.GRADLE)
classpath(Dependencies.Build.KOTLIN)
classpath(Dependencies.Build.HILT)
classpath(Dependencies.Build.VERSIONS)
classpath("com.squareup:javapoet:1.13.0") // Fix for Dagger 2.41
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter() // Required for Volley 1.1.1 (required by Google Maps)
}
}
tasks {
val clean by registering(Delete::class) {
delete(buildDir)
}
named(
"dependencyUpdates",
com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class
) {
resolutionStrategy {
componentSelection {
all {
val rejected = listOf(
"alpha",
"beta",
"rc",
"cr",
"m",
"preview",
"b",
"ea"
).any { qualifier ->
candidate.version.matches(Regex("(?i).*[.-]$qualifier[.\\d-+]*"))
}
if (rejected) {
reject("Release candidate")
}
}
}
}
// optional parameters
checkForGradleUpdate = true
outputDir = "build/dependencyUpdates"
reportfileName = "report"
outputFormatter = "json"
}
}