jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject [jmeter] branch master updated: Add -PskipSigning build script option so the release version ca be build without signing
Date Sun, 13 Oct 2019 20:33:10 GMT
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/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new d28d275  Add -PskipSigning build script option so the release version ca be build
without signing
d28d275 is described below

commit d28d275fc79883d59ef03bb94ef33b624086f6c7
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
AuthorDate: Mon Oct 14 00:32:09 2019 +0400

    Add -PskipSigning build script option so the release version ca be build without signing
---
 build.gradle.kts             | 7 ++++++-
 src/release/build.gradle.kts | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index 7a73b6d..45d4a78 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -174,6 +174,11 @@ val useGpgCmd by extra {
     boolProp("useGpgCmd") ?: false
 }
 
+// Signing is required for RELEASE version
+val skipSigning by extra {
+    boolProp("skipSigning") ?: boolProp("skipSign") ?: false
+}
+
 allprojects {
     if (project.path != ":src") {
         tasks.register<DependencyInsightReportTask>("allDependencyInsight") {
@@ -452,7 +457,7 @@ allprojects {
                 val release = rootProject.releaseParams.release.get()
                 // Note it would still try to sign the artifacts,
                 // however it would fail only when signing a RELEASE version fails
-                isRequired = release
+                isRequired = release && !skipSigning
             }
         }
     }
diff --git a/src/release/build.gradle.kts b/src/release/build.gradle.kts
index 838ca1c..19deb48 100644
--- a/src/release/build.gradle.kts
+++ b/src/release/build.gradle.kts
@@ -67,7 +67,7 @@ Keys are here:
 https://www.apache.org/dist/$tlpUrl/KEYS
 
 N.B.
-To create the jars and test $tlp: "./gradlew build -Prelease".
+To create the distribution and test $tlp: "./gradlew build -Prelease -PskipSigning".
 
 $tlp $version requires Java 8 or later to run.
 


Mime
View raw message