Skip to content

Commit d281ef5

Browse files
mkristiankares
authored andcommitted
make the jruby-openssl a java platform gem [skip ci]
1 parent 4b8f86f commit d281ef5

File tree

3 files changed

+31
-46
lines changed

3 files changed

+31
-46
lines changed

Mavenfile

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

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

5-
# that all should be part of ruby-maven to pick the right extension
6-
properties 'jruby.plugins.version' => '1.0.2'
7-
build.extensions.clear
8-
extension 'de.saumya.mojo:gem-with-jar-extension', '${jruby.plugins.version}'
9-
105
if model.version.to_s.match /[a-zA-Z]/
116
model.group_id = 'org.jruby.gems'
127

@@ -20,17 +15,6 @@ end
2015

2116
plugin( :compiler, :target => '1.6', :source => '1.6', :debug => true, :verbose => false, :showWarnings => true, :showDeprecation => true )
2217

23-
# TODO need upstream fix
24-
plugin( :jar,
25-
:outputDirectory => 'lib',
26-
:finalName => 'jopenssl' ) do
27-
execute_goals :jar, :phase => 'prepare-package'
28-
end
29-
30-
plugin( :clean, VERSIONS[ :clean_plugin ],
31-
:filesets => [ { :directory => 'lib',
32-
:includes => [ "jopenssl.jar" ] } ] )
33-
3418
jruby_plugin! :gem do
3519
# avoid adding this not yet built openssl to the load_path
3620
# when installing dependent gems

jruby-openssl.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Gem::Specification.new do |s|
1111
s.homepage = 'https://github.com/jruby/jruby'
1212
s.description = File.read('README.txt').split(/\n{2,}/)[3...4].join("\n\n")
1313
s.rubyforge_project = 'jruby/jruby'
14+
s.platform = 'java'
1415
s.files = Dir['[A-Z]*'] + Dir['lib/**/*'] + Dir['test/**/*']
1516

1617
s.requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{Jopenssl::Version::BOUNCY_CASTLE_VERSION}"
1718
s.requirements << "jar org.bouncycastle:bcprov-jdk15on, #{Jopenssl::Version::BOUNCY_CASTLE_VERSION}"
1819

19-
# s.changes = File.read('History.txt').split(/\n{2,}/)[0..1].join("\n\n")
2020
s.require_paths = ['lib']
2121
end
2222

pom.xml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,36 @@
8181
</extensions>
8282
<directory>${basedir}/pkg</directory>
8383
<plugins>
84+
<plugin>
85+
<artifactId>maven-jar-plugin</artifactId>
86+
<version>2.4</version>
87+
<executions>
88+
<execution>
89+
<phase>prepare-package</phase>
90+
<goals>
91+
<goal>jar</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
<configuration>
96+
<outputDirectory>lib</outputDirectory>
97+
<finalName>jopenssl</finalName>
98+
</configuration>
99+
</plugin>
100+
<plugin>
101+
<artifactId>maven-clean-plugin</artifactId>
102+
<version>2.4</version>
103+
<configuration>
104+
<filesets>
105+
<fileset>
106+
<directory>lib</directory>
107+
<includes>
108+
<include>jopenssl.jar</include>
109+
</includes>
110+
</fileset>
111+
</filesets>
112+
</configuration>
113+
</plugin>
84114
<plugin>
85115
<groupId>de.saumya.mojo</groupId>
86116
<artifactId>gem-maven-plugin</artifactId>
@@ -131,35 +161,6 @@
131161
<showDeprecation>true</showDeprecation>
132162
</configuration>
133163
</plugin>
134-
<plugin>
135-
<artifactId>maven-jar-plugin</artifactId>
136-
<executions>
137-
<execution>
138-
<phase>prepare-package</phase>
139-
<goals>
140-
<goal>jar</goal>
141-
</goals>
142-
</execution>
143-
</executions>
144-
<configuration>
145-
<outputDirectory>lib</outputDirectory>
146-
<finalName>jopenssl</finalName>
147-
</configuration>
148-
</plugin>
149-
<plugin>
150-
<artifactId>maven-clean-plugin</artifactId>
151-
<version>2.4</version>
152-
<configuration>
153-
<filesets>
154-
<fileset>
155-
<directory>lib</directory>
156-
<includes>
157-
<include>jopenssl.jar</include>
158-
</includes>
159-
</fileset>
160-
</filesets>
161-
</configuration>
162-
</plugin>
163164
</plugins>
164165
</build>
165166
</project>

0 commit comments

Comments
 (0)