This is an automated email from the ASF dual-hosted git repository.
mdedetrich 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 81381d97 Add signing for release artifacts
81381d97 is described below
commit 81381d97e4ff46c78fce214d31c971ead4904f67
Author: Matthew de Detrich <[email protected]>
AuthorDate: Mon Aug 7 23:30:25 2023 +0200
Add signing for release artifacts
---
gradle-plugin/build.gradle | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle
index 34c59a49..20ce9a62 100644
--- a/gradle-plugin/build.gradle
+++ b/gradle-plugin/build.gradle
@@ -19,6 +19,7 @@ plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'maven-publish'
+ id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
}
@@ -98,6 +99,16 @@ nexusPublishing {
}
}
+Boolean isReleaseVersion = !version.toString().endsWith("SNAPSHOT")
+
+signing {
+ setRequired({
+ isReleaseVersion && gradle.taskGraph.hasTask("publish")
+ })
+ useGpgCmd()
+ sign configurations.archives
+}
+
jar {
manifest {
attributes 'Implementation-Version': project.version
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]