From 5468d3acaac76d72c87c91268640711aa9f9cd98 Mon Sep 17 00:00:00 2001 From: Artemyev Vyacheslav Date: Thu, 16 Nov 2023 12:31:40 +0300 Subject: [PATCH] Add signing step --- build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index de49e79..bab6829 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ buildscript { testcontainers_version = "1.19.2" httpclient_version = "5.2.1" rabbitmq_http_client_version = "5.2.0" + isReleaseVersion = !version.endsWith("SNAPSHOT") } repositories { @@ -70,7 +71,8 @@ allprojects { } configure(rootProject) { - version = "0.0.7" + archivesBaseName = "rabbitmq-kotlin" + version = "0.0.7-SNAPSHOT" apply plugin: "com.adarshr.test-logger" @@ -152,7 +154,7 @@ publishing { from(components["java"]) artifact(tasks["sourcesJar"]) artifact(tasks["javadocJar"]) - groupId = "com.github.viartemev" + groupId = "io.github.viartemev" artifactId = "rabbitmq-kotlin" version = "0.7.0" pom { @@ -182,3 +184,8 @@ publishing { } } } + +signing { + required { isReleaseVersion && gradle.taskGraph.hasTask("publish") } + sign configurations.archives +}