title: gradle build fails with RepositoryNotFoundException
body: <p>I'm trying to build a project and I keep getting the following error:</p>
  
  <pre><code>* Where:
  Build file '/git/project/build.gradle' line: 24
  
  * What went wrong:
  A problem occurred evaluating root project 'project'.
  &gt; org/eclipse/jgit/errors/RepositoryNotFoundException
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 2.969 secs
  </code></pre>
  
  <p>This happens when I attempt to load a plugin that I have uploaded to a local repository:</p>
  
  <pre><code>buildscript {
    repositories {
      maven {
        url uri(System.getenv('LOCAL_REPO'))
      } 
    }
  }
  
  subprojects{
    apply plugin: 'otherproject.plugin' // line 24
  }
  </code></pre>
  
  <p>I called <code>gradle uploadArchives</code> from the other project to upload that plugin to the local repo, and it is being found by this project. </p>
  
  <p>I've googled it and there isn't much information on this exception, but what I have found says that gradle is looking for a git repository that does not exist.  I'm not sure why gradle is looking for a git repo in this case.</p>
  
  <p>What does this error actually mean, and what can cause it?  The documentation simply says "Indicates a local repository does not exist" and I can't figure anything out with that little information.  If you need more info from me, ask in the comments.  I'm totally stumped here.</p>