-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
26 lines (22 loc) · 966 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
import Dependencies.isNonStable
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins {
id(Dependencies.Gradle.androidAppGradle) version Dependencies.Versions.gradleAndroid apply false
id(Dependencies.Gradle.androidLibraryGradle) version Dependencies.Versions.gradleAndroid apply false
id(Dependencies.Gradle.kotlinGradle) version Dependencies.Versions.gradleKotlinPlugin apply false
id(Dependencies.Gradle.versionCheck) version Dependencies.Versions.versionCheck
id(Dependencies.Gradle.hilt) version Android.Versions.hilt apply false
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {
// optional parameters
checkForGradleUpdate = true
outputFormatter = "json"
outputDir = "build/dependencyUpdates"
reportfileName = "report"
rejectVersionIf {
isNonStable(this.candidate.version)
}
}