Repository: ode
Updated Branches:
  refs/heads/master 28dcae93d -> 8580751c8


only gpg sign releases, not snapshots.


Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/3bc10edd
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/3bc10edd
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/3bc10edd

Branch: refs/heads/master
Commit: 3bc10edd93a4a18188d7db61540e002752883135
Parents: 28dcae9
Author: Tammo van Lessen <[email protected]>
Authored: Wed Feb 25 14:35:13 2015 +0100
Committer: Tammo van Lessen <[email protected]>
Committed: Wed Feb 25 14:35:13 2015 +0100

----------------------------------------------------------------------
 Rakefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/3bc10edd/Rakefile
----------------------------------------------------------------------
diff --git a/Rakefile b/Rakefile
index 5a023fe..a8702c7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -21,7 +21,6 @@ require "buildr/openjpa"
 require "buildr/javacc"
 require "buildr/jetty"
 require "buildr/hibernate"
-require "buildr/gpg"
 
 require File.join(File.dirname(__FILE__), 'repositories.rb')
 require File.join(File.dirname(__FILE__), 'dependencies.rb')
@@ -41,13 +40,17 @@ Java.classpath << Buildr::OpenJPA::REQUIRES
 # Keep this structure to allow the build system to update version numbers.
 VERSION_NUMBER = "1.4-SNAPSHOT"
 
-# Apache Nexus Repositories
+# if SNAPSHOT version...
 if VERSION_NUMBER =~ /SNAPSHOT/
+    # ... deploy to:
     # Apache Development Snapshot Repository
     repositories.release_to[:url] = 
'https://repository.apache.org/content/repositories/snapshots'
 else
+   # ... else deploy to:
     # Apache Release Distribution Repository
     repositories.release_to[:url] = 
'https://repository.apache.org/service/local/staging/deploy/maven2'
+    # and make sure artifacts are signed.
+    require "buildr/gpg"
 end
 
 BUNDLE_VERSIONS = {

Reply via email to