Updated Branches: refs/heads/ode-1.3.6.x b53e4b61e -> dfcfff27c
also sign javadocs and sources. Project: http://git-wip-us.apache.org/repos/asf/ode/repo Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/fa8b6270 Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/fa8b6270 Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/fa8b6270 Branch: refs/heads/ode-1.3.6.x Commit: fa8b62701073323c95c0ee1d67100d9663c36830 Parents: b53e4b6 Author: Tammo van Lessen <[email protected]> Authored: Tue Oct 1 22:45:25 2013 +0200 Committer: Tammo van Lessen <[email protected]> Committed: Tue Oct 1 22:45:25 2013 +0200 ---------------------------------------------------------------------- Rakefile | 4 ++++ tasks/gpg.rake | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/fa8b6270/Rakefile ---------------------------------------------------------------------- diff --git a/Rakefile b/Rakefile index a7fb21c..fb0bd6b 100644 --- a/Rakefile +++ b/Rakefile @@ -633,6 +633,8 @@ define "ode" do package_with_sources :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] package_with_javadoc :except => ["jbi-karaf-examples:helloworld2-osgi", "jbi-karaf-examples:ping-pong-osgi"] unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i + # sign packages + gpg_sign_before_upload task :aligndeps do pp transitive(['org.apache.axis2:axis2-webapp:jar:1.5.6', 'org.apache.rampart:rampart-project:jar:1.5.2']).group_by {|s| "#{s.group}:#{s.id}:#{s.classifier}:#{s.type}" }.map {|i,v| v.sort_by(&:version).first.to_spec}.sort @@ -729,4 +731,6 @@ define "apache-ode" do package(:zip, :id=>"#{id}-docs").include(doc.from(project("ode").projects). using(:javadoc, :windowtitle=>"Apache ODE #{project.version}").target, :as=>"#{id}-docs-#{version}") unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i + # sign packages + gpg_sign_before_upload end http://git-wip-us.apache.org/repos/asf/ode/blob/fa8b6270/tasks/gpg.rake ---------------------------------------------------------------------- diff --git a/tasks/gpg.rake b/tasks/gpg.rake new file mode 100644 index 0000000..229dc15 --- /dev/null +++ b/tasks/gpg.rake @@ -0,0 +1,31 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +module Buildr + module GPG + module ProjectExtension + def gpg_sign_before_upload + self.enhance do + [self, self.projects].flatten.each { |prj| + prj.packages.each { |pkg| GPG.sign_and_upload(self, pkg) } + prj.packages.map {|pkg| pkg.pom }.uniq.each { |pom| GPG.sign_and_upload(self, pom) } + } + end + end + end + end +end
