From 61f87f1b1332b9bf2a34056e243a96cbc85fef65 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Tue, 2 Apr 2024 15:11:27 +0530 Subject: [PATCH] Fixed: The wrong message appears while committing the code, if Lint/Static analysis has failed. * Refactored the error message to show the correct information to the developers, since our projects needs JDK11 to run so we have added this JDK version in error message. Also, corrected the gradle wrapper version in this message. --- team-props/git-hooks/pre-commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/team-props/git-hooks/pre-commit.sh b/team-props/git-hooks/pre-commit.sh index 4f8eb37f1..8d53d1f17 100644 --- a/team-props/git-hooks/pre-commit.sh +++ b/team-props/git-hooks/pre-commit.sh @@ -14,8 +14,8 @@ else echo 1>&2 "Static analysis found violations and attempted to autofix, please commit these autoformat changes" echo " ---------------------------IMPORTANT FOR KIWIX DEVELOPERS---------------------------------------------- - If the build failed with '.../.gradle/daemon/5.6.1/custom/scr/customexample/info.json No File Found' then you do not have JAVA_HOME set to JDK8 - Please make sure JAVA_HOME is set to JDK8 + If the build failed with '.../.gradle/daemon/8.0/custom/scr/customexample/info.json No File Found' then you do not have JAVA_HOME set to JDK11 + Please make sure JAVA_HOME is set to JDK11 ---------------------------IMPORTANT FOR KIWIX DEVELOPERS----------------------------------------------" exit 1