title: Gradle dependency management : use "sub project" if jar not resolved
body: <p>I work in a quite complex environment and I would like to have a custom behavior to handle dependencies rather than the default one.</p>
  
  <p>In few words if I request </p>
  
  <pre><code>configuration { 
        compile "myGroupId:MyArtifact:MyVersion"
  }
  </code></pre>
  
  <p>if this version does not exist locally or remote (I'm using artifactory), the dependency resolve will fail (which is normal). But I would like to be able to switch to local sub projet ":MyArtifact"</p>
  
  <p>I've tried lots of things with configuration capabilities but it's quite new for me and I'm a bit lost.</p>
  
  <p>I would really appreciate a little help!</p>
  
  <p>Thanks!</p>