Skip to content

Commit

Permalink
Maven Central Upload works now.
Browse files Browse the repository at this point in the history
Moved the signing closure into the build script root. Before, it was
only exectured during the uploadArchives task and somehow this made the
upload of the archive .asc files fail. Or the signing at all. Don't know
exactly, but now it's working. However, of course, now the signing
always happens which may be troublesome for someone who just wants to
build to plugin but not upload it.
  • Loading branch information
khituras committed Apr 19, 2017
1 parent bcdfa9d commit c78c502
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 @@ -6,7 +6,7 @@ apply plugin: 'eclipse'
apply plugin: 'signing'

group = 'de.julielab'
version = '5.2.2-SNAPSHOT'
version = '5.2.2'

esplugin {
name 'elasticsearch-mapper-preanalyzed'
Expand Down Expand Up @@ -52,12 +52,13 @@ artifacts {
archives javadocJar, sourcesJar
}

// for access to the correct signature see https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials
signing {
sign configurations.archives
}

project.gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.allTasks.any { it.name == 'uploadArchives' }) {
// for access to the correct signature see https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials
signing {
sign configurations.archives
}

uploadArchives {
repositories {
Expand Down

0 comments on commit c78c502

Please sign in to comment.