Skip to content


run junit test on build the openssl jar
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jun 6, 2014
1 parent 2d65b6f commit b45383b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 36 deletions.
18 changes: 15 additions & 3 deletions ext/openssl/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

gemspec :jar => 'jopenssl', :include_jars => true

version = File.join( basedir, '..', '..', 'VERSION' ) ).strip
version.gsub!( /-SNAPSHOT$/, '' )
# that all should be part of ruby-maven to pick the right extension
properties 'jruby.plugins.version' => '1.0.2'
extension 'de.saumya.mojo:gem-with-jar-extension', '${jruby.plugins.version}'

if model.version.to_s.match /[a-zA-Z]/
model.group_id = 'org.jruby.gems'

model.version = model.version + '-SNAPSHOT'
plugin :deploy do
execute_goals( :deploy,
:skip => false,
Expand All @@ -26,8 +29,17 @@ jruby_plugin! :gem do
execute_goals :id => 'default-push', :skip => true

# you can use -Djruby.version=1.6.8 to pick a jruby version
# TODO use 1.6.8 and let the gem-maven-plugin pick the right version
properties 'jruby.version' => '1.7.12'
# we need the jruby API here, the version should be less important here
jar 'org.jruby:jruby-core:1.6.8', :scope => :provided
jar 'org.jruby:jruby-core', '${jruby.version}', :scope => :provided
# this artifact is needed to run the packaging at the end of the build
jar 'org.jruby:jruby-stdlib', '${jruby.version}', :scope => :provided

scope :test do
jar 'junit:junit:4.11'

properties( 'gem.home' => '../target/rubygems',
'gem.path' => '${gem.home}',
Expand Down
62 changes: 29 additions & 33 deletions ext/openssl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,25 @@
<name>JRuby OpenSSL</name>
<description>JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.</description>
<name>Ola Bini</name>
<name>JRuby contributors</name>
Expand All @@ -31,9 +45,21 @@
Expand All @@ -45,42 +71,12 @@
Expand Down

0 comments on commit b45383b

Please sign in to comment.