polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [25/50] zest-java git commit: ZEST-25 Add skipSigning build property set in src dist gradle.properties
Date Tue, 28 Jul 2015 12:55:22 GMT
ZEST-25 Add skipSigning build property set in src dist gradle.properties


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/6a0a317a
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/6a0a317a
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/6a0a317a

Branch: refs/heads/master
Commit: 6a0a317a199ba1d78df91a55014417a58e2836ad
Parents: 5fd949c
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Wed Jul 22 14:40:27 2015 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Wed Jul 22 14:40:27 2015 +0200

----------------------------------------------------------------------
 build.gradle | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/6a0a317a/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index a397140..7ce80ba 100644
--- a/build.gradle
+++ b/build.gradle
@@ -59,6 +59,9 @@ project.ext {
   releaseApprovedProjects = allprojects.findAll( { p -> rootProject.releaseSpec.satisfiedBy(
p ) } )
 }
 
+// Toggle signing, used by the source distribution by setting the skipSigning property in
gradle.properties
+project.ext.skipSigning = rootProject.hasProperty( 'skipSigning' ) ? rootProject.skipSigning
: false
+
 rat {
     onlyIf { version != '0' }
     excludes = [
@@ -329,6 +332,7 @@ allprojects {
       required { rootProject.version != '0' && uploadSigned }
       sign configurations.archives
     }
+    signArchives.onlyIf { !rootProject.skipSigning }
 
     task sourceJar( type: Jar ) {
       classifier = "sources"
@@ -744,7 +748,7 @@ task srcDistFilteredFiles() {
     // gradle.properties
     def gradlePropsFile = new File( filteredDir, 'gradle.properties' )
     gradlePropsFile.parentFile.mkdirs()
-    gradlePropsFile.text = project.file( 'gradle.properties' ).text + "\nversion=$version\n"
+    gradlePropsFile.text = project.file( 'gradle.properties' ).text + "\nskipSigning=true\n\nversion=$version\n"
   }
 }
 
@@ -855,6 +859,7 @@ signing {
   required { rootProject.version != '0' && !rootProject.version.contains( 'SNAPSHOT'
) }
   sign configurations.archives
 }
+signArchives.onlyIf { !rootProject.skipSigning }
 
 task dist( type: Copy, dependsOn: install ) {
   description "Unpack the binary distribution"


Mime
View raw message