This is an automated email from the ASF dual-hosted git repository. vladimirsitnikov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git
commit be534e3b446c38b3af662fe632795a0622c761ad Author: Vladimir Sitnikov <[email protected]> AuthorDate: Sun Nov 10 19:10:30 2019 +0300 Sign release artifacts only, skip signing for -SNAPSHOT --- build.gradle.kts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 63c7ecf..2a1c9a5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -114,6 +114,8 @@ val buildVersion = "calcite.avatica".v + releaseParams.snapshotSuffix println("Building Apache Calcite Avatica $buildVersion") +val isReleaseVersion = rootProject.releaseParams.release.get() + releaseArtifacts { fromProject(":release") } @@ -247,9 +249,11 @@ allprojects { apply(plugin = "de.thetaphi.forbiddenapis") apply(plugin = "maven-publish") - configure<SigningExtension> { - // Sign all the publications - sign(publishing.publications) + if (isReleaseVersion) { + configure<SigningExtension> { + // Sign all the publications + sign(publishing.publications) + } } if (enableSpotBugs) {
