Mavenfile in jruby-jars-1.7.9 vs Mavenfile in jruby-jars-1.7.10

- old
+ new

@@ -1,10 +1,10 @@ #-*- mode: ruby -*- gemspec :include_jars => true -model.version = model.version.sub(/\.SNAPSHOT/, '-SNAPSHOT') +model.version = model.version.sub(/\.SNAPSHOT/, '-SNAPSHOT').sub( /-SNAPSHOT-SNAPSHOT/, '-SNAPSHOT' ) inherit "org.jruby:jruby-artifacts:#{model.version}" name "JRuby Jars Gem" jar 'org.jruby:jruby-core-complete', '${project.parent.version}' @@ -18,20 +18,32 @@ :includes => ['*.jar'] } ], :failOnError => false ) end properties( 'tesla.dump.pom' => 'pom.xml', - 'tesla.dump.readonly' => true ) + 'tesla.dump.readonly' => true, + 'jruby.home' => '${basedir}/../../' ) -plugin 'de.saumya.mojo:gem-maven-plugin' do +jruby_plugin :gem 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/ + source = gem.sub( /-SNAPSHOT/, '.SNAPSHOT' ) + FileUtils.mv( source, gem ) if gem.match( /-SNAPSHOT/ ) and File.exists?( source ) +end + +plugin( :invoker, + :projectsDirectory => 'src/it', + :cloneProjectsTo => '${project.build.directory}/it', + :postBuildHookScript => 'verify.bsh', + :streamLogs => true ) do + execute_goals( :install, :run ) +# :settingsFile => '${basedir}/src/it/settings.xml', +# :localRepositoryPath => '${project.build.directory}/local-repo' ) end # vim: syntax=Ruby