Skip to content

Commit

Permalink
Disable signing when uploading to Gradle plugins portal
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangkun83 committed Nov 6, 2015
1 parent 9c39f39 commit 7242fcc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ artifacts {
archives javadocJar
}

signing {
required { isReleaseVersion &&
gradle.taskGraph.hasTask("uploadArchives") &&
!gradle.taskGraph.hasTask("publishPlugins")}
sign configurations.archives
// The Gradle plugin portal doesn't allow signature files.
if (!gradle.startParameter.taskNames.intersect(['publishPlugins'])) {
signing {
required { isReleaseVersion }
sign configurations.archives
}
}

targetCompatibility = 1.6
Expand Down

0 comments on commit 7242fcc

Please sign in to comment.