-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle.kts
44 lines (33 loc) · 974 Bytes
/
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
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins {
id("com.github.ben-manes.versions") version Versions.Gradle.Updates
}
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath (Plugins.GradlePlugin)
classpath (Plugins.Kotlin)
classpath (Plugins.Hilt)
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
// Task to check update for all dependencies (libraries/plugins/gradle version)
tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
// Don't disable "Jacoco" updates | Don't display "non-stable" dependencies updates
rejectVersionIf {
candidate.module == "org.jacoco.ant" || candidate.version.isDependencyNonStable()
}
}