File: Mavenfile

package info (click to toggle)
ruby-jar-dependencies 0.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,172 kB
  • sloc: ruby: 2,407; sh: 137; xml: 117; java: 20; makefile: 9
file content (39 lines) | stat: -rw-r--r-- 1,523 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# frozen_string_literal: true

inherit 'jar-dependencies:install-ruby-maven:0' do
  # TODO: should not be needed with ruby-maven
  relative_path '../Mavenfile'
end

packaging 'pom'

jar 'org.jruby:jruby-complete', '${jruby.version}'

plugin('org.codehaus.mojo:exec-maven-plugin', '3.5.0',
       executable: :java,
       environmentVariables: { 'GEM_HOME' => '${gem.home}',
                               'GEM_PATH' => '${gem.home}',
                               'JARS_VERBOSE' => true,
                               'BUNDLER_GEMFILE' => '${basedir}/Gemfile',
                               'PATH' => '${gem.home}/bin${path.separator}${env.PATH}' }) do
  execute_goal(:exec, id: 'gem install', phase: :test,
                      arguments: ['-classpath',
                                  xml('<classpath/>'),
                                  'org.jruby.Main', 'test_gem.rb', '${jar-dependencies.version}'])
  execute_goal(:exec, id: 'bundle install', phase: :test,
                      arguments: ['-classpath',
                                  xml('<classpath/>'),
                                  'org.jruby.Main', 'test_bundler.rb', '${jar-dependencies.version}'])
end

properties('gem.home' => '${project.basedir}/../../rubygems',
           'gem.path' => '${gem.home}')

repository id: 'mavengems', url: 'mavengem:https://rubygems.org'

gem 'jar-dependencies', '${jar-dependencies.version}'
gem 'bundler', '${bundler.version}'

jruby_plugin :gem, '${jruby.plugins.version}' do
  execute_goal :initialize
end