forked from moallemi/Film-Time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (33 loc) · 1.16 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
plugins {
alias(libs.plugins.com.android.application) apply false
alias(libs.plugins.org.jetbrains.kotlin.android) apply false
alias(libs.plugins.org.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.com.android.library) apply false
alias(libs.plugins.kotlinx.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.room) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.hilt.android) apply false
alias(libs.plugins.advanced.gradle.build.version) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.google.play.publish) apply false
alias(libs.plugins.spotless)
}
spotless {
kotlin {
target("**/*.kt", "**/*.kts")
targetExclude("${layout.buildDirectory}/**/*.kt", "bin/**/*.kt", "buildSrc/**/*.kt")
ktlint()
}
}
val installGitHook by tasks.registering(Copy::class) {
from(file("${rootProject.rootDir}/.scripts/pre-commit"))
into(file("${rootProject.rootDir}/.git/hooks"))
fileMode = 0b111101101
}
project(":app").afterEvaluate {
tasks.named("preBuild").configure {
dependsOn(":installGitHook")
}
}