-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (42 loc) · 1.05 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
buildscript {
dependencies {
classpath(Libraries.Build.GoogleService)
classpath(Libraries.Build.Secrets)
classpath(Libraries.Hilt.GradlePlugin)
classpath(Libraries.Kotlin.JsonGradlePlugin)
classpath(Libraries.Firebase.CrashlyticsGradlePlugin)
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.Kotlin.Kotlin}")
}
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
/**
* Spotless Tasks
*
* ./gradlew --init-script scripts/spotless.gradle.kts --no-configuration-cache check
* ./gradlew --init-script scripts/spotless.gradle.kts --no-configuration-cache spotlessApply
*/
tasks.register("validate", Exec::class) {
commandLine = listOf(
"./gradlew",
"--init-script",
"scripts/spotless.gradle.kts",
"--no-configuration-cache",
"check"
)
}
tasks.register("lint", Exec::class) {
commandLine = listOf(
"./gradlew",
"--init-script",
"scripts/spotless.gradle.kts",
"--no-configuration-cache",
"spotlessApply"
)
}