Skip to content

Commit 7bfd3c4

Browse files
authored
Update pre-commit (#193)
1 parent d0363b2 commit 7bfd3c4

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

pre-commit

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
22

3-
echo "***** Check license before commit ******"
3+
echo "***** Check license headers before commit *****"
44

5-
./gradlew checkLicense
5+
if [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ]; then
6+
./gradlew.bat checkLicense
7+
elif [ "$(expr substr $(uname -s) 1 4)" == "MSYS" ]; then
8+
./gradlew.bat checkLicense
9+
else
10+
./gradlew checkLicense
11+
fi

settings.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ rootProject.name = "jacodb"
22

33
plugins {
44
`gradle-enterprise`
5-
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.0.25"
5+
id("org.danilopianini.gradle-pre-commit-git-hooks") version "1.1.11"
66
}
77

88
gradleEnterprise {
@@ -14,10 +14,9 @@ gradleEnterprise {
1414

1515
gitHooks {
1616
preCommit {
17-
// Content can be added at the bottom of the script
18-
from(file("pre-commit").toURI().toURL())
17+
from(file("pre-commit"))
1918
}
20-
createHooks() // actual hooks creation
19+
createHooks(true)
2120
}
2221

2322
include("jacodb-api")

0 commit comments

Comments
 (0)