title: Gradle tells me ' Must specify a repository for deployment'
body: <p>I tried write a gradle plugin,and i want deploy it to localMaven.
  I write code like this </p>
  
  <pre><code>group='cn.sola.gradle'
  version='1.0-SNAPSHOT'
  uploadArchives {
  repositories {
      mavenDeployer {
          mavenLocal()
       }
     }
  }
  </code></pre>
  
  <p>Then I run this command <strong>gradle -q upload</strong>
  But gradle print like this:</p>
  
  <pre><code>* What went wrong:
    Execution failed for task ':uploadArchives'.
    &gt; Could not publish configuration 'archives'
      &gt; Must specify a repository for deployment
  enter code here
  </code></pre>
  
  <p>But my file is already there.
  The files under the directory is like this.</p>
  
  <pre><code>ls ~/.m2/repository/cn/sola/gradle/HelloGradlePlugin/1.0-SNAPSHOT/
  
  HelloGradlePlugin-1.0-SNAPSHOT.jar       ivy-1.0-SNAPSHOT.xml
  HelloGradlePlugin-1.0-SNAPSHOT.jar.sha1  ivy-1.0-SNAPSHOT.xml.sha1
  </code></pre>
  
  <p>What does the exception mean?And is the file OK?</p>
  
  <p>----add information----</p>
  
  <pre><code>:uploadArchives (Thread[main,5,main]) started.
  :uploadArchives
  Executing task ':uploadArchives' (up-to-date check took 0.001 secs) due to:
    Task has not declared any outputs.
  Publishing configuration: configuration ':archives'
  Publishing to Maven repository 'MavenLocal'
  Published HelloGradlePlugin.jar (cn.sola.gradle:HelloGradlePlugin:1.0-SNAPSHOT) to file:/Users/sola1tmy/.m2/repository/cn/sola/gradle/HelloGradlePlugin/1.0-SNAPSHOT/HelloGradlePlugin-1.0-SNAPSHOT.jar
  Published ivy.xml (cn.sola.gradle:HelloGradlePlugin:1.0-SNAPSHOT) to file:/Users/sola1tmy/.m2/repository/cn/sola/gradle/HelloGradlePlugin/1.0-SNAPSHOT/ivy-1.0-SNAPSHOT.xml
  Publishing to org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer@b46e103
  :uploadArchives FAILED
  :uploadArchives (Thread[main,5,main]) completed. Took 0.516 secs.
  </code></pre>