Skip to content

Commit

Permalink
pre-commit 작동하도록 task 수정
Browse files Browse the repository at this point in the history
task executableGitHooks 추가
  • Loading branch information
cmj7271 committed Jan 8, 2025
1 parent cbf4d1c commit 9197433
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ spotless {
tasks.register("updateGitHooks", Copy) {
from "./scripts/pre-commit"
into ".git/hooks"

compileJava.dependsOn(this)
}
}
tasks.register("executableGitHooks", Exec) {
commandLine "chmod", "ug+x", ".git/hooks/pre-commit"
dependsOn(updateGitHooks)
}
compileJava.dependsOn(executableGitHooks)

0 comments on commit 9197433

Please sign in to comment.