title: Use gradle to upload jar to local Maven repository
body: <p>This question has been asked several times, but somehow I don't get this to work. Gradle is a great tool, but its documentation is anything but great. No examples make it almost impossible to understand for someone who doesn't use it on a daily basis.</p>
  
  <p>I am using Android Studio and I want to upload my module output jar to my local Maven repository.</p>
  
  <pre><code>apply plugin: 'java'
  
  dependencies {
      compile 'com.google.http-client:google-http-client-android:1.18.0-rc'
  }
  
  
  apply plugin: 'maven'
  configure(install.repositories.mavenInstaller) {
      pom.project {
          groupId 'com.example'
          artifactId 'example'
          packaging 'jar'
      }
  }
  </code></pre>
  
  <p>When I start a build in Android Studio, I can see on the Gradle tab that</p>
  
  <pre><code>:install
  </code></pre>
  
  <p>is invoked. I also get a new jar in my build folder, but that jar is not uploaded to Maven. [The Maven repo exists and the Google appengine gradle plugin uploads its jar from another module of the same project just fine.]</p>
  
  <p>What am I missing?</p>