-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
51 lines (44 loc) · 1.37 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
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import sk.mholecy.meteorites.Clean
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { setUrl("https://maven.fabric.io/public") }
}
dependencies {
classpath(Dependencies.gradlePlugin)
classpath(kotlin(Dependencies.Kotlin.gradlePlugin, Versions.kotlin))
classpath(Dependencies.NavigationComponents.safeArgs)
}
}
allprojects {
repositories {
google()
jcenter()
maven { setUrl("https://jitpack.io") }
}
}
plugins {
idea
id(Dependencies.Plugins.dependencyUpdates) version Versions.dependencyUpdates
}
tasks {
register<Clean>("clean")
named<DependencyUpdatesTask>("dependencyUpdates") {
group = Project.TASK_GROUP
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview", "testing")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
.any { it.matches(candidate.version) }
if (rejected) {
reject("Release candidate")
}
}
}
}
}
}