title: How to sign maven publications with gradle
body: <p>Have such <code>build.gradle</code> script that uses new publishing plugin:</p>
  
  <pre><code>apply plugin: 'java'
  apply plugin: 'groovy'
  apply plugin: 'signing'
  apply plugin: 'maven-publish'
  
  // ...
  
  publishing {
      publications {
          maven(MavenPublication) {
              from components.java
  
              artifact sourcesJar {
                  classifier 'source'
              }
          }
      }
  
      repositories {
          maven {
              name 'Temporary'
              url "file://${rootProject.buildDir}/repo"
          }
      }
  }
  
  signing {
      sign configurations.archives
  }
  </code></pre>
  
  <p>So the questions are:</p>
  
  <ol>
  <li>How to sign maven pom?</li>
  <li>How to publish signatures to maven repository?</li>
  </ol>