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 |