Mavenfile in jruby-jars-1.7.6 vs Mavenfile in jruby-jars-1.7.7

- old
+ new

@@ -1,9 +1,10 @@ #-*- mode: ruby -*- gemspec :include_jars => true +model.version = model.version.sub(/\.SNAPSHOT/, '-SNAPSHOT') inherit "org.jruby:jruby-artifacts:#{model.version}" name "JRuby Jars Gem" jar 'org.jruby:jruby-core-complete', '${project.parent.version}' @@ -21,7 +22,16 @@ properties( 'tesla.dump.pom' => 'pom.xml', 'tesla.dump.readonly' => true ) plugin 'de.saumya.mojo:gem-maven-plugin' do execute_goals :id => 'default-push', :skip => true +end + +execute 'rename gem file', :package do |ctx| + + require 'fileutils' + gem = File.join( ctx.project.build.directory, + ctx.project.build.final_name + ".gem" ) + FileUtils.mv( gem.sub( /-SNAPSHOT/, '.SNAPSHOT' ), gem ) if gem.match /-SNAPSHOT/ + end # vim: syntax=Ruby