mirror of
https://github.com/mrcsxsiq/Kotlin-Pokedex.git
synced 2025-05-17 05:15:53 +08:00
6 lines
197 B
Groovy
6 lines
197 B
Groovy
task installGitHook(type: Copy) {
|
|
from new File(rootProject.rootDir, 'pre-commit')
|
|
into { new File(rootProject.rootDir, '.git/hooks') }
|
|
fileMode 0777
|
|
}
|
|
preBuild.dependsOn installGitHook |