title: Unable to avoid searching for invalid dependency in gradle build
body: <p>I try to include the Launch4J gradle plugin in our project.</p>
  <pre><code>plugins {
      id 'edu.sc.seis.launch4j' version '2.4.8'
  }
  </code></pre>
  <p>However, the build fails with the following error.</p>
  <blockquote>
  <p>Could not resolve all files for configuration ':compileClasspath'.
  Could not find jai_core-1.1.3.jar (javax.media:jai_core:1.1.3).
  Searched in the following locations:
  <a href="https://jcenter.bintray.com/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar" rel="nofollow noreferrer">https://jcenter.bintray.com/javax/media/jai_core/1.1.3/jai_core-1.1.3.jar</a></p>
  </blockquote>
  <p>Looking at the jcenter repository, the file is indeed missing. (But why does gradle not search the next repository in the list for it?)</p>
  <p>So I try to exclude that dependency from jcenter like this:</p>
  <pre><code>jcenter() {
      content {
          excludeGroupByRegex &quot;javax.media.*&quot;
      }
  }
  </code></pre>
  <p>...but still the same error.</p>
  <p>I also tried to exclude the dependency from the plugin repository in settings.gradle like this:</p>
  <pre><code>pluginManagement {
      repositories {
          jcenter() {
              content {
                  excludeGroupByRegex &quot;javax.media.*&quot;
              }
          }
      }
  }
  </code></pre>
  <p>...but still the same error.</p>
  <p>How can I include edu.sc.seis.launch4j but retrieve jai_core from a different repository?</p>
  <p>I expect gradle to search for the dependency in the next repository in the list if it is not present or excluded in the current one.</p>