diff --git a/build.gradle b/build.gradle index ac488df..33aac05 100644 --- a/build.gradle +++ b/build.gradle @@ -126,7 +126,7 @@ dependencies { runtimeOnly 'org.slf4j:slf4j-simple:2.0.9' } -def gitHash = 'git rev-parse --verify --short HEAD'.execute().text.trim() +def gitHash = "git -C $projectDir rev-parse --verify --short HEAD".execute().text.trim() def buildDate = java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss z") .withZone(ZoneId.of("UTC")) .format(Instant.now())