title: authentication error when publishing from gradle to nexus
body: <p>I am using gradle v3.4 and trying to publish a jar file to nexus.  Relevant portions of build.gradle and error are copied below:</p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>repositories {
      maven {
          credentials {
              username project.properties['nexusUser']
              password project.properties['nexusPassword']
          }
          url project.properties['nexusUrl']
      }
      mavenLocal()
      mavenCentral()
      jcenter()
  }
  </code></pre>
  
  <p>I get the error below when I run <strong>gradle clean</strong> or <strong>gradle dependencies</strong>
  <strong>error</strong></p>
  
  <pre><code> Could not resolve all dependencies for configuration ':classpath'.
     &gt; Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
  </code></pre>
  
  <p><strong>gradle.properties</strong></p>
  
  <pre><code>nexusUrl="http://nexus.something.com"
  nexusUser="someone"
  nexusPassword="somepassword"
  </code></pre>