makalis commented on code in PR #6974:
URL: https://github.com/apache/ignite-3/pull/6974#discussion_r2577691620
##########
buildscripts/generate-version-file.gradle:
##########
@@ -16,9 +16,20 @@
*/
def createVersionFile = tasks.register('createVersionFile') {
- onlyIf {
- project.hasProperty("lastCommitHash")
- }
+ def commitHash = project.hasProperty("lastCommitHash")
+ ? project.property("lastCommitHash")
+ : {
+ try {
Review Comment:
fixed
##########
buildscripts/generate-version-file.gradle:
##########
@@ -16,9 +16,9 @@
*/
def createVersionFile = tasks.register('createVersionFile') {
- onlyIf {
- project.hasProperty("lastCommitHash")
- }
+ def commitHash = project.hasProperty("lastCommitHash")
+ ? project.property("lastCommitHash")
+ : 'git rev-parse HEAD'.execute().text.trim()
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]