-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathMavenfile
More file actions
57 lines (45 loc) · 2.09 KB
/
Mavenfile
File metadata and controls
57 lines (45 loc) · 2.09 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#-*- mode: ruby -*-
id 'none:base:0'
packaging :pom
snapshot_repository :id => 'jruby', :url => 'http://ci.jruby.org/snapshots/maven'
# TODO should be setup whenever a plugin uses gems
plugin_repository :id => 'rubygems-releases', :url => 'http://rubygems-proxy.torquebox.org/releases'
base_path = File.expand_path('..', File.dirname(__FILE__))
bc_version = File.read("#{base_path}/lib/jopenssl/version.rb")[/BOUNCY_CASTLE_VERSION\s?=\s?'(.*?)'/, 1]
properties( 'bc.version' => bc_version, # to satisfy maven
'jruby.openssl.version' => '0.9.7', # to satisfy maven
# use the gem-maven-plugin repo for the tests
'gem.home' => '${basedir}/../pkg/rubygems',
'gem.path' => '${basedir}/../pkg/rubygems',
'tesla.dump.pom' => 'pom.xml',
'tesla.dump.readonly' => true,
'jruby.version' => '1.7.19', # for jruby-maven-plugins
'jruby.plugins.version' => '1.0.9' )
jruby_plugin :gem, :gemHomes => { 'gem-maven-plugin' => '${gem.home}' } do
execute_goal :initialize
gem 'jar-dependencies', '0.1.8' # TODO change after 0.1.15 is out
spec = Gem::Specification.load "#{base_path}/jruby-openssl.gemspec"
spec.development_dependencies.each do |dev_spec|
gem dev_spec.name, *dev_spec.requirements_list
end
# make sure we have those in the local repo
# BUT not be part of the runit-classloader
# otherwise jruby-1.7.x and jruby-1.6.x will not use those
# required in the test_*.rb files
jar 'org.bouncycastle', 'bcpkix-jdk15on', '${bc.version}'
jar 'org.bouncycastle', 'bcprov-jdk15on', '${bc.version}'
#spec.requirements.each do |req|
# req = req.sub('jar', '').split(',').each(&:strip!)
# jar req[0], req[1]
#end
gem 'jruby-openssl', '${jruby.openssl.version}'
end
jruby_plugin :runit do
execute_goal( :test,
:env => { 'BC_VERSION' => '${bc.version}' },
:jrubySwitches => '-I../../lib',
:runitDirectory => '../../src/test/ruby/**/test_*.rb',
:versions => '${jruby.versions}',
:modes => '${jruby.modes}' )
end
# vim: syntax=Ruby