diff --git a/Mavenfile b/Mavenfile index 71dddfe3..3308406a 100644 --- a/Mavenfile +++ b/Mavenfile @@ -104,12 +104,12 @@ plugin :deploy, '3.1.4' do execute_goals( :deploy, :skip => false ) end -supported_bc_versions = %w{ 1.78 1.79 1.80 1.81 1.82 1.83 } +supported_bc_versions = %w{ 1.78 1.79 1.80 1.81 1.82 1.83 1.84 } default_bc_version = File.read File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__)) default_bc_version = default_bc_version[/BOUNCY_CASTLE_VERSION\s?=\s?'(.*?)'/, 1] -properties( 'jruby.plugins.version' => '3.0.2', +properties( 'jruby.plugins.version' => '3.0.6', 'jruby.switches' => '-W0', # https://github.com/torquebox/jruby-maven-plugins/issues/94 'bc.versions' => default_bc_version, 'invoker.test' => '${bc.versions}', @@ -118,7 +118,7 @@ properties( 'jruby.plugins.version' => '3.0.2', 'skipRunit' => 'true', 'runit.dir' => 'src/test/ruby/**/test_*.rb', 'mavengem.wagon.version' => '2.0.2', # for jruby plugin - 'mavengem-wagon.version' => '2.0.2', # for polyglot-ruby + 'mavengem-wagon.version' => '3.0.0', # for polyglot-ruby # use this version of jruby for the jruby-maven-plugins 'jruby.versions' => MVN_JRUBY_VERSION, 'jruby.version' => MVN_JRUBY_VERSION, # dump pom.xml when running 'rmvn' diff --git a/README.md b/README.md index 63f2f524..88806ff4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ the JRuby [mailing list][1] or the [bug tracker][2]. | ~>0.12.x | 9.1.x-9.3.x | Java 8-15 | 1.65-1.68 | | ~>0.13.x | 9.1.x-9.4.x | Java 8-17 | 1.68-1.69 | | ~>0.14.x | 9.1.x-9.4.x | Java 8-21 | 1.71-1.74 | -| ~>0.15.x | 9.2.x-10.0.x | Java 8-25 | 1.78-1.83 | +| ~>0.15.x | 9.2.x-10.0.x | Java 8-25 | 1.78-1.84 | NOTE: backwards JRuby compatibility was not handled for versions <= **0.9.6** diff --git a/Rakefile b/Rakefile index ef83d8f5..83d8d5f5 100644 --- a/Rakefile +++ b/Rakefile @@ -34,7 +34,7 @@ Rake::TestTask.new do |task| test_files = FileList['src/test/ruby/**/test*.rb'].to_a task.test_files = test_files.map { |path| path.sub('src/test/ruby/', '') } task.verbose = true - task.loader = :direct + task.loader = "ARGV.each { |f| require f unless f.start_with?('-') }" task.ruby_opts = [ '-C', 'src/test/ruby', '-rbundler/setup' ] end task :test => 'lib/jopenssl.jar' @@ -49,7 +49,7 @@ namespace :integration do unless File.exist?(File.join(it_path, 'Gemfile.lock')) raise "bundle not installed, run `rake integration:install'" end - loader = "ARGV.each { |f| require f }" + loader = "ARGV.each { |f| require f unless f.start_with?('-') }" lib = [ File.expand_path('../lib', __FILE__), it_path ] test_files = FileList['src/test/integration/*_test.rb'].map { |path| path.sub('src/test/integration/', '') } ruby "-I#{lib.join(':')} -C src/test/integration -e \"#{loader}\" #{test_files.map { |f| "\"#{f}\"" }.join(' ')}" diff --git a/integration/pom.xml b/integration/pom.xml index 1f0a89a2..2b584b21 100644 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -38,7 +38,7 @@ - de.saumya.mojo + org.jruby.maven gem-maven-plugin ${jruby.plugins.version} @@ -97,7 +97,7 @@ - de.saumya.mojo + org.jruby.maven runit-maven-plugin ${jruby.plugins.version} diff --git a/lib/jopenssl/version.rb b/lib/jopenssl/version.rb index 6e214aaf..2608d80e 100644 --- a/lib/jopenssl/version.rb +++ b/lib/jopenssl/version.rb @@ -1,6 +1,6 @@ module JOpenSSL VERSION = '0.15.8.dev' - BOUNCY_CASTLE_VERSION = '1.83' + BOUNCY_CASTLE_VERSION = '1.84' end Object.class_eval do diff --git a/pom.xml b/pom.xml index 05fbc7c3..f9222af6 100644 --- a/pom.xml +++ b/pom.xml @@ -60,15 +60,15 @@ DO NOT MODIFY - GENERATED CODE - 1.83 + 1.84 ${maven.test.skip} ${bc.versions} - 3.0.2 + 3.0.6 -W0 9.2.19.0 9.2.19.0 - 2.0.2 - 2.0.2 + 2.0.2 + 3.0.0 pom.xml false src/test/ruby/**/test_*.rb @@ -78,22 +78,22 @@ DO NOT MODIFY - GENERATED CODE org.bouncycastle bcprov-jdk18on - 1.83 + 1.84 org.bouncycastle bcpkix-jdk18on - 1.83 + 1.84 org.bouncycastle bctls-jdk18on - 1.83 + 1.84 org.bouncycastle bcutil-jdk18on - 1.83 + 1.84 org.jruby @@ -407,7 +407,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.2.19.0 9.2.19.0 @@ -445,7 +445,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.2.20.1 9.2.20.1 @@ -483,7 +483,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.3.3.0 9.3.3.0 @@ -521,7 +521,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.3.13.0 9.3.13.0 @@ -559,7 +559,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.4.8.0 9.4.8.0 @@ -597,7 +597,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 9.4.14.0 9.4.14.0 @@ -635,7 +635,7 @@ DO NOT MODIFY - GENERATED CODE - 1.78,1.79,1.80,1.81,1.82,1.83 + 1.78,1.79,1.80,1.81,1.82,1.83,1.84 10.0.2.0 10.0.2.0 diff --git a/src/main/java/org/jruby/ext/openssl/impl/PKey.java b/src/main/java/org/jruby/ext/openssl/impl/PKey.java index 23d2fd15..fc12d65a 100644 --- a/src/main/java/org/jruby/ext/openssl/impl/PKey.java +++ b/src/main/java/org/jruby/ext/openssl/impl/PKey.java @@ -297,7 +297,7 @@ public static KeyPair readECPrivateKey(final KeyFactory keyFactory, final Privat org.bouncycastle.asn1.sec.ECPrivateKey key = org.bouncycastle.asn1.sec.ECPrivateKey.getInstance(seq); AlgorithmIdentifier algId = keyInfo.getPrivateKeyAlgorithm(); if (algId == null) { // mockPrivateKeyInfo - algId = new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, key.getParameters()); + algId = new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, key.getParametersObject().toASN1Primitive()); } final PrivateKeyInfo privInfo = new PrivateKeyInfo(algId, key); ECPrivateKey privateKey = (ECPrivateKey) keyFactory.generatePrivate(new PKCS8EncodedKeySpec(privInfo.getEncoded())); diff --git a/src/test/ruby/test_helper.rb b/src/test/ruby/test_helper.rb index 49f6506a..0b73700f 100644 --- a/src/test/ruby/test_helper.rb +++ b/src/test/ruby/test_helper.rb @@ -52,7 +52,7 @@ def self.plugin_output_init(options) rescue LoadError => e warn "gem 'minitest' failed to load: #{e.inspect}" end unless (Test::Unit::AutoRunner.respond_to?(:setup_option)) rescue true # runit rules -# @see https://github.com/torquebox/jruby-maven-plugins/blob/master/runit-maven-plugin/src/main/java/de/saumya/mojo/runit/RunitMavenTestScriptFactory.java +# @see https://github.com/jruby/jruby-maven-plugins/blob/master/runit-maven-plugin/src/main/java/de/saumya/mojo/runit/RunitMavenTestScriptFactory.java if defined? Minitest::Test TestCase = Minitest::Test