2
2
3
3
gemspec :jar => 'jopenssl' , :include_jars => true
4
4
5
- sonatype_url = 'https://oss.sonatype.org/content/repositories/snapshots/'
6
- snapshot_repository :id => 'sonatype' , :url => sonatype_url
7
-
8
5
distribution_management do
9
6
snapshot_repository :id => :ossrh , :url => 'https://oss.sonatype.org/content/repositories/snapshots'
10
7
repository :id => :ossrh , :url => 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
@@ -80,29 +77,24 @@ plugin :clean do
80
77
'failOnError' => 'false' )
81
78
end
82
79
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
86
81
jar 'junit:junit' , '4.11' , :scope => :test
87
82
88
83
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
93
86
execute_goal :id => 'default-initialize' , :addProjectClasspath => false , :libDirectory => 'something-which-does-not-exists'
94
87
execute_goals :id => 'default-push' , :skip => true
95
88
end
96
89
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
99
91
plugin :deploy , '2.8.1' do
100
92
execute_goals ( :deploy , :skip => false )
101
93
end
102
94
103
95
supported_bc_versions = %w{ 1.55 1.56 1.57 1.58 1.59 }
104
96
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__ ) )
106
98
default_bc_version = default_bc_version [ /BOUNCY_CASTLE_VERSION\s ?=\s ?'(.*?)'/ , 1 ]
107
99
108
100
properties ( 'jruby.plugins.version' => '1.0.10' ,
@@ -122,7 +114,11 @@ properties( 'jruby.plugins.version' => '1.0.10',
122
114
123
115
# make sure we have the embedded jars in place before we run runit plugin
124
116
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'
126
122
end
127
123
128
124
jruby_plugin ( :runit ) { execute_goal ( :test , :runitDirectory => '${runit.dir}' ) }
@@ -141,34 +137,16 @@ invoker_run_options = {
141
137
'runit.dir' => '${runit.dir}' }
142
138
}
143
139
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
-
160
140
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 }
161
141
162
142
jruby_1_7_versions . each { |version |
163
-
164
143
profile :id => "test-#{ version } " do
165
144
plugin :invoker , '1.8' do
166
145
execute_goals ( :install , :run , invoker_run_options )
167
146
end
168
147
properties 'jruby.versions' => version , 'jruby.modes' => '1.9,2.0' ,
169
148
'bc.versions' => supported_bc_versions . join ( ',' )
170
149
end
171
-
172
150
}
173
151
174
152
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
190
168
execute_goal :sign , :phase => :verify
191
169
end
192
170
end
171
+
193
172
# vim: syntax=Ruby
0 commit comments