-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
31 lines (27 loc) · 937 Bytes
/
build.gradle.kts
File metadata and controls
31 lines (27 loc) · 937 Bytes
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
buildscript {
dependencies {
classpath(libs.google.services)
classpath(libs.secrets.gradle.plugin)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.ksp) apply false
alias(libs.plugins.aboutlibraries) apply false
alias(libs.plugins.google.service) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.compose.compiler) apply false
}
// pre commit hook to check kotlin style before commits
tasks.register<Copy>("copyPreCommitHook") {
description = "Copy pre-commit git hook from the scripts to the .git/hooks folder."
group = "git hooks"
outputs.upToDateWhen { false }
from("$rootDir/scripts/pre-commit")
into("$rootDir/.git/hooks/")
}
afterEvaluate {
tasks.getByPath(":app:preBuild").dependsOn(":copyPreCommitHook")
}