Created
February 2, 2016 19:22
-
-
Save fredgrott/e8095a400e8ed350ec8c to your computer and use it in GitHub Desktop.
Githashses cross platform with gradle, the ext block..require grgit lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext{ | |
repo = Grgit.open(rootProject.file('.')) | |
gitSha = '${repo.head().abbreviatedId}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment