Make task getGitVersion optional
Some new users, who download this project as ZIP and not git clone is facing issues with building the project.
It seems getGitVersion task is failing as it is not able to find .git folder in the downloaded folders. If we can make getGitVersion task optional and check if we don't have .git folder and do error handling based on that.