File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ rootProject.name = "jacodb"
22
33plugins {
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
88gradleEnterprise {
@@ -14,10 +14,9 @@ gradleEnterprise {
1414
1515gitHooks {
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
2322include(" jacodb-api" )
You can’t perform that action at this time.
0 commit comments