diff --git a/build.gradle b/build.gradle index e512334..e51966e 100644 --- a/build.gradle +++ b/build.gradle @@ -11,10 +11,10 @@ version = '1.0.7' def gitCommitId = '' try { def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git', 'rev-parse', '--short', 'HEAD' - standardOutput = stdout; - } + providers.exec { + commandLine 'git', 'rev-parse', '--short', 'HEAD' + standardOutput = stdout; + }.result.get() gitCommitId = stdout.toString().trim() } catch (Exception ignored) {