12 lines
473 B
Kotlin
12 lines
473 B
Kotlin
tasks {
|
|
register("installGitHook", Copy::class) {
|
|
from(File(rootProject.rootDir, "scripts/git-hooks/pre-commit"))
|
|
into(File(rootProject.rootDir, ".git/hooks"))
|
|
fileMode = 7 * 64 + 7 * 8 + 7
|
|
/*
|
|
from(File(rootProject.rootDir, "scripts/git-hooks/pre-push"))
|
|
into(File(rootProject.rootDir, ".git/hooks"))
|
|
fileMode = 777*/
|
|
getByPath(":app:preBuild").dependsOn(":installGitHook")
|
|
}
|
|
} |