From c78c50269ce381ee9b01f836165b6cb35699ebec Mon Sep 17 00:00:00 2001 From: khituras Date: Wed, 19 Apr 2017 13:43:14 +0200 Subject: [PATCH] Maven Central Upload works now. 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. --- build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 318988c..c3ae7fb 100644 --- a/build.gradle +++ b/build.gradle @@ -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' @@ -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 {