1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# frozen_string_literal: true
packaging 'jar'
gem 'jar-dependencies', '${jar-dependencies.version}'
jruby_plugin :gem, '${jruby.plugins.version}' do
execute_goal :initialize
end
pom 'org.jruby:jruby', '${jruby.version}'
plugin('org.codehaus.mojo:exec-maven-plugin', '3.5.0',
executable: :java,
environmentVariables: { 'GEM_HOME' => '${gem.home}',
'GEM_PATH' => '${gem.home}' }) do
execute_goal(:exec, id: 'no more warnings', phase: :test,
arguments: ['-classpath',
xml('<classpath/>'),
'org.jruby.Main',
'test.rb'])
end
properties('gem.home' => '${project.basedir}/pkg/rubygems',
'gem.path' => '${gem.home}')
|