Skip to content

Commit

Permalink
Add -PskipSigning build script option so the release version ca be bu…
Browse files Browse the repository at this point in the history
…ild without signing
  • Loading branch information
vlsi committed Oct 13, 2019
1 parent ecc7edb commit d28d275
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build.gradle.kts
Expand Up @@ -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") {
Expand Down Expand Up @@ -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
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/release/build.gradle.kts
Expand Up @@ -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.
Expand Down

0 comments on commit d28d275

Please sign in to comment.