Sha256: 62de99cd73e58f7b92963b5d7440fe0d519890829dd9ed3e1f510177daa65d95
Contents?: true
Size: 1.87 KB
Versions: 12
Compression:
Stored size: 1.87 KB
Contents
#-*- mode: ruby -*- require 'fileutils' gemspec version = File.read( File.join( basedir, '..', '..', 'VERSION' ) ).strip inherit "org.jruby:jruby-artifacts:#{version}" ruby_version = model.version model.version = nil name "JRuby Jars Gem" jar 'org.jruby:jruby-stdlib', '${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.plugins.version' => '1.0.7', # we share the already installed gems 'gem.home' => '${jruby.home}/lib/ruby/gems/shared', 'jruby.home' => '${basedir}/../../' ) execute 'copy jruby.jar', 'prepare-package' do |ctx| FileUtils.cp( File.join( ctx.project.properties[ 'jruby.home' ], 'lib', 'jruby.jar' ), File.join( ctx.project.basedir.to_s, 'lib', "jruby-core-#{ctx.project.version}.jar" ) ) end # do not push the gem during deploy phase # the bang reuses the plugin declaration which is already in place and # adds the extra execute_goal to it jruby_plugin!( :gem, :gemspec => 'jruby-jars.gemspec', # tell maven to include the jar files into gem :includeDependencies => true ) do execute_goals :id => 'default-push', :skip => true end build do final_name "${project.artifactId}-#{ruby_version}" end plugin :invoker, :properties => { 'ruby.version' => ruby_version, 'gem.home' => '${project.build.directory}/rubygems', 'gem.path' => '${project.build.directory}/rubygems' } # vim: syntax=Ruby
Version data entries
12 entries across 12 versions & 1 rubygems