title: Gradle not signing for nexus repo
body: <p>I'm having an issue signing my artifacts to publish to Sonatype Nexus Repo:</p>
  <p><a href="https://i.stack.imgur.com/PkCDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PkCDH.png" alt="enter image description here" /></a></p>
  <p>Below is my <code>build.gradle</code>:</p>
  <pre><code>plugins {
      id 'java'
      id 'idea'
      id 'maven-publish'
      id 'signing'
      id &quot;com.palantir.git-version&quot; version &quot;0.12.3&quot;
      id &quot;io.github.gradle-nexus.publish-plugin&quot; version &quot;1.0.0&quot;
  }
  Properties properties = new Properties()
  def propertiesFile = project.rootProject.file('local.properties')
  if (propertiesFile.exists()) {
      properties.load(propertiesFile.newDataInputStream())
  }
  
  
  group 'com.github.ekimeel'
  version gitVersion()
  ext.isReleaseVersion = !version.endsWith(&quot;SNAPSHOT&quot;)
  sourceCompatibility = 1.8
  
  
  task sourcesJar(type: Jar) {
      archiveClassifier = 'sources'
      from sourceSets.main.allJava
  }
  
  task javadocJar(type: Jar) {
      archiveClassifier = 'javadoc'
      from javadoc.destinationDir
  }
  
  artifacts {
      archives sourcesJar, javadocJar
  }
  
  signing {
      sign publishing.publications
  }
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  
  publishing {
      repositories {
          maven {
              def releaseRepo = &quot;https://oss.sonatype.org/service/local/staging/deploy/maven2/&quot;
              def snapshotRepo = &quot;https://oss.sonatype.org/content/repositories/snapshots/&quot;
              url = isReleaseVersion ? releaseRepo : snapshotRepo
              credentials {
                  username = properties.get(&quot;ossrh.username&quot;) ?: System.getenv(&quot;OSSRH_USERNAME&quot;)
                  password = properties.get(&quot;ossrh.password&quot;) ?: System.getenv(&quot;OSSRH_PASSWORD&quot;)
              }
          }
      }
      publications {
          mavenJava(MavenPublication) { publication -&gt;
              from components.java
  
              artifact sourcesJar
              artifact javadocJar
  
              pom {
                  groupId = 'my-group-id'
                  name = 'my-proj-name'
                  description = 'my-desc'
                  url = 'my-url'
                  developers {
                      developer {
                          id = 'my-id'
                          name = 'my-name'
                          email = 'my-email'
                      }
                  }
                  licenses {
                      license {
                          name = 'The Apache License, Version 2.0'
                          url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                      }
                  }
                  scm {
                      connection = 'my-scm-conn'
                      developerConnection = 'my-dev-conn'
                      url = 'my-url'
                  }
              }
          }
      }
  }
  </code></pre>