Skip to content

Commit 9b15845

Browse files
committed
update BC to 1.60 + prepare for Java 9+ compilation
1 parent a12d7bd commit 9b15845

File tree

3 files changed

+45
-15
lines changed

3 files changed

+45
-15
lines changed

Mavenfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ plugin( :compiler, '3.1',
4949
:source => '1.7', :target => java_target,
5050
:encoding => 'UTF-8', :debug => true,
5151
:showWarnings => true, :showDeprecation => true,
52+
:excludes => [ 'module-info.java' ],
5253

5354
:generatedSourcesDirectory => gen_sources,
5455
:annotationProcessors => [ 'org.jruby.anno.AnnotationBinder' ],
@@ -67,6 +68,11 @@ plugin( :compiler, '3.1',
6768
# NOTE: maybe '-J-Xbootclasspath/p:${unsafe.jar}' ... as well ?!
6869
end
6970

71+
profile 'module-info' do
72+
activation { jdk '[9,)' }
73+
plugin :compiler, '3.1', :source => '9', :target => java_target, :includes => [ 'module-info.java' ]
74+
end
75+
7076
plugin :clean do
7177
execute_goals( 'clean', :id => 'default-clean', :phase => 'clean',
7278
'filesets' => [
@@ -97,15 +103,15 @@ supported_bc_versions = %w{ 1.55 1.56 1.57 1.58 1.59 }
97103
default_bc_version = File.read File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__))
98104
default_bc_version = default_bc_version[/BOUNCY_CASTLE_VERSION\s?=\s?'(.*?)'/, 1]
99105

100-
properties( 'jruby.plugins.version' => '1.0.10',
106+
properties( 'jruby.plugins.version' => '1.1.5',
101107
'jruby.versions' => '1.7.26',
102108
'bc.versions' => default_bc_version,
103109
'invoker.test' => '${bc.versions}',
104110
# allow to skip all tests with -Dmaven.test.skip
105111
'invoker.skip' => '${maven.test.skip}',
106112
'runit.dir' => 'src/test/ruby/**/test_*.rb',
107113
# use this version of jruby for ALL the jruby-maven-plugins
108-
'jruby.version' => '1.7.26',
114+
'jruby.version' => '9.1.17.0',
109115
# dump pom.xml as readonly when running 'rmvn'
110116
'polyglot.dump.pom' => 'pom.xml',
111117
'polyglot.dump.readonly' => true,

lib/jopenssl/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JOpenSSL
2-
VERSION = '0.10.1'
3-
BOUNCY_CASTLE_VERSION = '1.59'
2+
VERSION = '0.10.2.dev'
3+
BOUNCY_CASTLE_VERSION = '1.60'
44
end
55
Jopenssl = JOpenSSL

pom.xml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>rubygems</groupId>
1313
<artifactId>jruby-openssl</artifactId>
14-
<version>0.10.1</version>
14+
<version>0.10.2.dev-SNAPSHOT</version>
1515
<packaging>gem</packaging>
1616
<name>JRuby OpenSSL</name>
1717
<description>JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.</description>
@@ -57,18 +57,18 @@ DO NOT MODIFIY - GENERATED CODE
5757
</snapshotRepository>
5858
</distributionManagement>
5959
<properties>
60-
<bc.versions>1.59</bc.versions>
61-
<mavengem.wagon.version>0.2.0</mavengem.wagon.version>
62-
<jruby.plugins.version>1.0.10</jruby.plugins.version>
60+
<bc.versions>1.60</bc.versions>
6361
<invoker.skip>${maven.test.skip}</invoker.skip>
64-
<jruby.version>1.7.26</jruby.version>
65-
<runit.dir>src/test/ruby/**/test_*.rb</runit.dir>
62+
<invoker.test>${bc.versions}</invoker.test>
63+
<jruby.plugins.version>1.1.5</jruby.plugins.version>
64+
<jruby.version>9.1.17.0</jruby.version>
6665
<jruby.versions>1.7.26</jruby.versions>
66+
<mavengem.wagon.version>0.2.1</mavengem.wagon.version>
67+
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
6768
<polyglot.dump.readonly>true</polyglot.dump.readonly>
69+
<runit.dir>src/test/ruby/**/test_*.rb</runit.dir>
6870
<tesla.dump.pom>pom.xml</tesla.dump.pom>
69-
<polyglot.dump.pom>pom.xml</polyglot.dump.pom>
7071
<tesla.dump.readonly>true</tesla.dump.readonly>
71-
<invoker.test>${bc.versions}</invoker.test>
7272
</properties>
7373
<dependencies>
7474
<dependency>
@@ -95,17 +95,17 @@ DO NOT MODIFIY - GENERATED CODE
9595
<dependency>
9696
<groupId>org.bouncycastle</groupId>
9797
<artifactId>bcprov-jdk15on</artifactId>
98-
<version>1.59</version>
98+
<version>1.60</version>
9999
</dependency>
100100
<dependency>
101101
<groupId>org.bouncycastle</groupId>
102102
<artifactId>bcpkix-jdk15on</artifactId>
103-
<version>1.59</version>
103+
<version>1.60</version>
104104
</dependency>
105105
<dependency>
106106
<groupId>org.bouncycastle</groupId>
107107
<artifactId>bctls-jdk15on</artifactId>
108-
<version>1.59</version>
108+
<version>1.60</version>
109109
</dependency>
110110
<dependency>
111111
<groupId>org.jruby</groupId>
@@ -284,6 +284,9 @@ DO NOT MODIFIY - GENERATED CODE
284284
<debug>true</debug>
285285
<showWarnings>true</showWarnings>
286286
<showDeprecation>true</showDeprecation>
287+
<excludes>
288+
<exclude>module-info.java</exclude>
289+
</excludes>
287290
<generatedSourcesDirectory>${basedir}/target/generated-sources</generatedSourcesDirectory>
288291
<annotationProcessors>
289292
<annotationProcessor>org.jruby.anno.AnnotationBinder</annotationProcessor>
@@ -373,6 +376,27 @@ DO NOT MODIFIY - GENERATED CODE
373376
</plugins>
374377
</build>
375378
<profiles>
379+
<profile>
380+
<id>module-info</id>
381+
<activation>
382+
<jdk>[9,)</jdk>
383+
</activation>
384+
<build>
385+
<plugins>
386+
<plugin>
387+
<artifactId>maven-compiler-plugin</artifactId>
388+
<version>3.1</version>
389+
<configuration>
390+
<source>9</source>
391+
<target>1.7</target>
392+
<includes>
393+
<include>module-info.java</include>
394+
</includes>
395+
</configuration>
396+
</plugin>
397+
</plugins>
398+
</build>
399+
</profile>
376400
<profile>
377401
<id>test-1.7.18</id>
378402
<build>

0 commit comments

Comments
 (0)