This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new 391440e2 get jar signing to work (#155)
391440e2 is described below

commit 391440e24189211e125f3e5d188d995c1c27163a
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Aug 9 13:12:51 2023 +0100

    get jar signing to work (#155)
---
 gradle-plugin/build.gradle | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle
index af3a5ec3..435db78c 100644
--- a/gradle-plugin/build.gradle
+++ b/gradle-plugin/build.gradle
@@ -12,7 +12,7 @@ plugins {
   id 'java-gradle-plugin'
   id 'maven-publish'
   id 'signing'
-  id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
+  id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
 }
 
 group = "org.apache.pekko"
@@ -94,11 +94,12 @@ nexusPublishing {
 Boolean isReleaseVersion = !version.toString().endsWith("SNAPSHOT")
 
 signing {
-    setRequired({
-        isReleaseVersion && gradle.taskGraph.hasTask("publish")
-    })
-    useGpgCmd()
-    sign configurations.archives
+    required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
+    sign publishing.publications
+}
+
+tasks.withType(Sign) {
+    onlyIf { isReleaseVersion }
 }
 
 jar {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to