Author: assaf
Date: Fri Sep 26 14:09:11 2008
New Revision: 699501
URL: http://svn.apache.org/viewvc?rev=699501&view=rev
Log:
BUILDR-83 Dependency checks as part of the release process: now checking
dependencies for the other platform as well.
Modified:
incubator/buildr/trunk/Rakefile
incubator/buildr/trunk/rakelib/package.rake
Modified: incubator/buildr/trunk/Rakefile
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/Rakefile?rev=699501&r1=699500&r2=699501&view=diff
==============================================================================
--- incubator/buildr/trunk/Rakefile (original)
+++ incubator/buildr/trunk/Rakefile Fri Sep 26 14:09:11 2008
@@ -46,7 +46,7 @@
task('apache:license').enhance FileList[spec.files].exclude('.class', '.png',
'.jar', '.tif', '.textile', '.icns',
'README', 'LICENSE', 'CHANGELOG', 'DISCLAIMER', 'NOTICE', 'etc/KEYS',
'etc/git-svn-authors')
-task 'spec:check' do
+task 'stage:check' do
print 'Checking that we have JRuby, Scala and Groovy available ... '
fail 'Full testing requires JRuby!' unless which('jruby')
fail 'Full testing requires Scala!' unless which('scala')
@@ -54,4 +54,11 @@
puts 'OK'
end
+task 'stage:check' do
+ # Dependency check for the other platform, i.e. if making a release with
Ruby,
+ # run dependency checks with JRuby. (Also, good opportunity to upgrade other
+ # platform's dependencies)
+ sh RUBY_PLATFORM =~ /java/ ? 'ruby' : 'jruby', '-S', 'rake', 'setup
dependency'
+end
+
Modified: incubator/buildr/trunk/rakelib/package.rake
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/package.rake?rev=699501&r1=699500&r2=699501&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/package.rake (original)
+++ incubator/buildr/trunk/rakelib/package.rake Fri Sep 26 14:09:11 2008
@@ -46,6 +46,7 @@
desc 'Look for new dependencies, check transitive dependencies'
task 'dependency' do
+ puts "Checking that all dependencies are up to date ..."
# Find if anything has a more recent dependency. These are not errors, just
reports.
for dep in spec.dependencies
current = Gem::SourceInfoCache.search(dep, true, true).last