n0mer / gradle-git-properties

Gradle plugin for `git.properties` file generation
https://plugins.gradle.org/plugin/com.gorylenko.gradle-git-properties
Apache License 2.0
323 stars 55 forks source link

don't fail build during task run when no .git directory is available #145

Closed aaditya-taparia closed 4 years ago

aaditya-taparia commented 4 years ago

Currently, if there is no .git directory available it seems like generateGitProperties fails

tha2015 commented 4 years ago

Can you try this config? It should do the job.

gitProperties {
    failOnNoGitDirectory = false
}
tha2015 commented 4 years ago

FYI, I've updated the README at https://github.com/n0mer/gradle-git-properties

aaditya-taparia commented 4 years ago

Thanks!