title: Dependency is not using the correct maven repository
body: <p>I am trying o use the <code>ManifestClasspath</code> plugin to solve the <code>CreateProcess error=206, The filename or extension is too long</code> error. My <code>build.gradle</code> looks like this:</p>
  <pre><code>buildscript {
      repositories {
          mavenLocal()
          mavenCentral()
          jcenter()
          maven {
              url &quot;http://repo.maven.apache.org/maven2&quot;
  //            allowInsecureProtocol = true
          }
          maven {
              url &quot;https://plugins.gradle.org/m2/&quot;
          }
      }
  
      dependencies {
          classpath(&quot;org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion&quot;)
          classpath &quot;org.owasp:dependency-check-gradle:$dependencyCheckVersion&quot;
          classpath(&quot;org.springframework.cloud:spring-cloud-contract-gradle-plugin:${springCloudContractVersion}&quot;)
          classpath(&quot;org.springframework.cloud:spring-cloud-contract-pact:${springCloudContractVersion}&quot;)
          classpath &quot;gradle.plugin.ua.eshepelyuk:ManifestClasspath:1.0.0&quot;
      }
  }
  
  ext['elasticsearch.version'] = &quot;7.1.0&quot;
  
  allprojects {
      apply plugin: 'maven'
      apply plugin: &quot;ua.eshepelyuk.ManifestClasspath&quot;
      ...
  }
  </code></pre>
  <p>But, now I am getting this error:</p>
  <pre><code>Could not GET 'http://repo.maven.apache.org/maven2/gradle/plugin/ua/eshepelyuk/ManifestClasspath/1.0.0/ManifestClasspath-1.0.0.pom'. Received status code 501 from server: HTTPS Required
  </code></pre>
  <p>It needs to use the <code>https://plugins.gradle.org/m2/</code> repository, but instead it uses <code>http://repo.maven.apache.org/maven2</code>. How can I specify which repository it needs to use?</p>