title: Cannot read file /usr/local/git/etc/gitconfig when try to run gradle build
body: <p>I keep having this error message when I try to run the <code>gradle build</code> using command line, while no issues at all using IntelliJ.</p>
  
  <ul>
  <li>What went wrong:
  A problem occurred evaluating root project 'xxxxx'.
  
  <blockquote>
    <p>Failed to apply plugin [id 'net.vivin.gradle-semantic-build-versioning']
    <strong>> Unable to find Git repository: Systen wide config file /usr/local/git/etc/gitconfig is invalid org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file /usr/local/git/etc/gitconfig</strong></p>
  </blockquote></li>
  </ul>
  
  <p>The repository has been specified in the <code>build.gradle</code> file and build works fine with IntelliJ. </p>
  
  <pre><code>maven {
              url "https://plugins.gradle.org/m2/"
  }
  </code></pre>
  
  <p>I am not sure why it tries to check the <code>gitconfig</code> file and why it failed. Can you help me with this?</p>