Skip to content

Commit 3f25f72

Browse files
committed
cleanup Mavenfile and prepare release 0.10.1
1 parent 2a38f3a commit 3f25f72

File tree

4 files changed

+26
-45
lines changed

4 files changed

+26
-45
lines changed

History.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 0.10.1
2+
3+
* loading JOpenSSL's native ext part the JRuby 9.2 (internal) way
4+
* avoid, once again, installing BC provider on boot (due OCSP support)
5+
* [feat] support OpenSSL::KDF as a (semi) OpenSSL::PKCS5 replacement
6+
* rename ugly-sh "Jopenssl" constant to **JOpenSSL**
7+
* support PKCS7#decrypt with 1 argument (pkey only - without certificate)
8+
* undo some of the call-sites in SSLSocket - account for sub-classes (#165)
9+
* follow-up to provide == for X.509 types (like C-OpenSSL does in 2.1)
10+
* validate iter parameter on Cipher#pkcs5_keyivgen (since OpenSSL 2.0.8)
11+
* remove openssl/pkcs7.rb -> since 1.8 no longer supported
12+
113
## 0.10.0
214

315
**NOTE:** dropped support for anything below ~ JRuby 1.7.20

Mavenfile

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

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

5-
sonatype_url = 'https://oss.sonatype.org/content/repositories/snapshots/'
6-
snapshot_repository :id => 'sonatype', :url => sonatype_url
7-
85
distribution_management do
96
snapshot_repository :id => :ossrh, :url => 'https://oss.sonatype.org/content/repositories/snapshots'
107
repository :id => :ossrh, :url => 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
@@ -80,29 +77,24 @@ plugin :clean do
8077
'failOnError' => 'false' )
8178
end
8279

83-
# NOTE: unfortunately we can not use 1.6.8 to generate invokers ...
84-
# although we'd like to compile against 1.6 to make sure all is well
85-
jar 'org.jruby:jruby-core', '1.7.17', :scope => :provided # 1.6.8
80+
jar 'org.jruby:jruby-core', '1.7.20', :scope => :provided
8681
jar 'junit:junit', '4.11', :scope => :test
8782

8883
jruby_plugin! :gem do
89-
# when installing dependent gems we want to use the built in openssl
90-
# not the one from this lib directory
91-
# we compile against jruby-core-1.7.17 and want to keep this out of
92-
# the plugin execution here
84+
# when installing dependent gems we want to use the built in openssl not the one from this lib directory
85+
# we compile against jruby-core-1.7.20 and want to keep this out of the plugin execution here
9386
execute_goal :id => 'default-initialize', :addProjectClasspath => false, :libDirectory => 'something-which-does-not-exists'
9487
execute_goals :id => 'default-push', :skip => true
9588
end
9689

97-
# we want to have the snapshots on oss.sonatype.org and the released gems
98-
# on maven central
90+
# we want to have the snapshots on oss.sonatype.org and the released gems on maven central
9991
plugin :deploy, '2.8.1' do
10092
execute_goals( :deploy, :skip => false )
10193
end
10294

10395
supported_bc_versions = %w{ 1.55 1.56 1.57 1.58 1.59 }
10496

105-
default_bc_version = File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__))
97+
default_bc_version = File.read File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__))
10698
default_bc_version = default_bc_version[/BOUNCY_CASTLE_VERSION\s?=\s?'(.*?)'/, 1]
10799

108100
properties( 'jruby.plugins.version' => '1.0.10',
@@ -122,7 +114,11 @@ properties( 'jruby.plugins.version' => '1.0.10',
122114

123115
# make sure we have the embedded jars in place before we run runit plugin
124116
plugin! :dependency do
125-
execute_goal 'copy-dependencies', :phase => 'generate-test-resources', :outputDirectory => '${basedir}/lib', :useRepositoryLayout => true, :includeGroupIds => 'org.bouncycastle'
117+
execute_goal 'copy-dependencies',
118+
:phase => 'generate-test-resources',
119+
:outputDirectory => '${basedir}/lib',
120+
:useRepositoryLayout => true,
121+
:includeGroupIds => 'org.bouncycastle'
126122
end
127123

128124
jruby_plugin(:runit) { execute_goal( :test, :runitDirectory => '${runit.dir}' ) }
@@ -141,34 +137,16 @@ invoker_run_options = {
141137
'runit.dir' => '${runit.dir}' }
142138
}
143139

144-
# profile :id => 'test-1.6.8' do
145-
# plugin :invoker, '1.8' do
146-
# execute_goals( :install, :run, invoker_run_options )
147-
# end
148-
# properties 'jruby.versions' => '1.6.8', 'jruby.modes' => '1.8,1.9',
149-
# 'bc.versions' => supported_bc_versions.join(',')
150-
# end
151-
#
152-
# profile :id => 'test-1.7.4' do
153-
# plugin :invoker, '1.8' do
154-
# execute_goals( :install, :run, invoker_run_options )
155-
# end
156-
# properties 'jruby.versions' => '1.7.4', 'jruby.modes' => '1.8,1.9',
157-
# 'bc.versions' => supported_bc_versions.join(',')
158-
# end
159-
160140
jruby_1_7_versions = %w{ 1.7.18 1.7.20 1.7.22 1.7.23 1.7.24 1.7.25 1.7.26 1.7.27 }
161141

162142
jruby_1_7_versions.each { |version|
163-
164143
profile :id => "test-#{version}" do
165144
plugin :invoker, '1.8' do
166145
execute_goals( :install, :run, invoker_run_options )
167146
end
168147
properties 'jruby.versions' => version, 'jruby.modes' => '1.9,2.0',
169148
'bc.versions' => supported_bc_versions.join(',')
170149
end
171-
172150
}
173151

174152
jruby_9_K_versions = %w{ 9.0.1.0 9.0.5.0 9.1.2.0 9.1.8.0 9.1.12.0 9.1.16.0 9.1.17.0 9.2.0.0 }
@@ -190,4 +168,5 @@ profile :id => 'release' do
190168
execute_goal :sign, :phase => :verify
191169
end
192170
end
171+
193172
# vim: syntax=Ruby

lib/jopenssl/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JOpenSSL
2-
VERSION = '0.10.1.dev'
2+
VERSION = '0.10.1'
33
BOUNCY_CASTLE_VERSION = '1.59'
44
end
55
Jopenssl = JOpenSSL

pom.xml

Lines changed: 2 additions & 12 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.dev-SNAPSHOT</version>
14+
<version>0.10.1</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>
@@ -110,7 +110,7 @@ DO NOT MODIFIY - GENERATED CODE
110110
<dependency>
111111
<groupId>org.jruby</groupId>
112112
<artifactId>jruby-core</artifactId>
113-
<version>1.7.17</version>
113+
<version>1.7.20</version>
114114
<scope>provided</scope>
115115
</dependency>
116116
<dependency>
@@ -125,16 +125,6 @@ DO NOT MODIFIY - GENERATED CODE
125125
<id>mavengems</id>
126126
<url>mavengem:https://rubygems.org</url>
127127
</repository>
128-
<repository>
129-
<releases>
130-
<enabled>false</enabled>
131-
</releases>
132-
<snapshots>
133-
<enabled>true</enabled>
134-
</snapshots>
135-
<id>sonatype</id>
136-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
137-
</repository>
138128
</repositories>
139129
<build>
140130
<extensions>

0 commit comments

Comments
 (0)