Sha256: a584235e28e879c658a06c932281d082c9adb436cfea461f376e9d16452d1885

Contents?: true

Size: 1.53 KB

Versions: 4

Compression:

Stored size: 1.53 KB

Contents

#-*- mode: ruby -*-

gemspec :include_jars => true

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}'
jar 'org.jruby:jruby-stdlib-complete', '${project.parent.version}'

plugin( :clean, '2.5' ) do
  execute_goals( :clean,
                 :phase => :clean, 
                 :id => 'clean-lib',
                 :filesets => [ { :directory => '${basedir}/lib',
                                  :includes => ['*.jar'] } ],
                 :failOnError => false )
end

properties( 'tesla.dump.pom' => 'pom.xml',
            'tesla.dump.readonly' => true,
            'jruby.home' => '${basedir}/../../' )

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" )
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jruby-jars-1.7.13 Mavenfile
jruby-jars-1.7.12 Mavenfile
jruby-jars-1.7.11 Mavenfile
jruby-jars-1.7.10 Mavenfile