maven-tools 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +8 -0
  3. data/Mavenfile +22 -0
  4. data/Rakefile +44 -0
  5. data/lib/maven/tools/coordinate.rb +6 -1
  6. data/lib/maven/tools/dsl.rb +116 -42
  7. data/lib/maven/tools/model.rb +336 -334
  8. data/lib/maven/tools/pom.rb +4 -5
  9. data/lib/maven/tools/version.rb +1 -1
  10. data/lib/maven/tools/versions.rb +4 -7
  11. data/lib/maven/tools/visitor.rb +22 -7
  12. data/maven-tools.gemspec +39 -0
  13. data/spec/artifact_spec.rb +30 -10
  14. data/spec/coordinate_spec.rb +1 -1
  15. data/spec/gemfile/Gemfile +7 -0
  16. data/spec/gemfile/Mavenfile +5 -0
  17. data/spec/gemfile/bouncy-castle-java.gemspec +20 -0
  18. data/spec/gemfile/pom.xml +79 -0
  19. data/spec/gemfile_include_jars/Gemfile +5 -0
  20. data/spec/gemfile_include_jars/Mavenfile +5 -0
  21. data/spec/gemfile_include_jars/bouncy-castle-java.gemspec +20 -0
  22. data/spec/gemfile_include_jars/pom.xml +74 -0
  23. data/spec/gemfile_with_access_to_model/Gemfile +5 -0
  24. data/spec/gemfile_with_access_to_model/Mavenfile +7 -0
  25. data/spec/gemfile_with_access_to_model/bouncy-castle-java.gemspec +16 -0
  26. data/spec/gemfile_with_access_to_model/pom.xml +62 -0
  27. data/spec/gemfile_with_custom_source/Gemfile +5 -0
  28. data/spec/gemfile_with_custom_source/Mavenfile +5 -0
  29. data/spec/gemfile_with_custom_source/bouncy-castle-java.gemspec +19 -0
  30. data/spec/gemfile_with_custom_source/pom.xml +107 -0
  31. data/spec/gemfile_with_custom_source/src/java/.keep +0 -0
  32. data/spec/gemfile_with_custom_source_and_custom_jarname/Gemfile +5 -0
  33. data/spec/gemfile_with_custom_source_and_custom_jarname/Mavenfile +5 -0
  34. data/spec/gemfile_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
  35. data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +107 -0
  36. data/spec/gemfile_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
  37. data/spec/gemfile_with_extras/Gemfile +5 -0
  38. data/spec/gemfile_with_extras/Mavenfile +21 -0
  39. data/spec/gemfile_with_extras/bouncy-castle-java.gemspec +20 -0
  40. data/spec/gemfile_with_extras/pom.xml +106 -0
  41. data/spec/gemfile_with_groups/Gemfile +9 -0
  42. data/spec/gemfile_with_groups/Mavenfile +5 -0
  43. data/spec/gemfile_with_groups/pom.xml +44 -0
  44. data/spec/gemfile_with_groups_and_lockfile/Gemfile +10 -0
  45. data/spec/gemfile_with_groups_and_lockfile/Gemfile.lock +34 -0
  46. data/spec/gemfile_with_groups_and_lockfile/Mavenfile +5 -0
  47. data/spec/gemfile_with_groups_and_lockfile/pom.xml +155 -0
  48. data/spec/gemfile_with_lock/Gemfile +7 -0
  49. data/spec/gemfile_with_lock/Gemfile.lock +42 -0
  50. data/spec/gemfile_with_lock/Mavenfile +5 -0
  51. data/spec/gemfile_with_lock/bouncy-castle-java.gemspec +22 -0
  52. data/spec/gemfile_with_lock/pom.xml +197 -0
  53. data/spec/gemfile_with_path/Gemfile +7 -0
  54. data/spec/gemfile_with_path/Mavenfile +5 -0
  55. data/spec/gemfile_with_path/pom.xml +63 -0
  56. data/spec/gemfile_with_source/Mavenfile +5 -0
  57. data/spec/gemfile_with_source/bouncy-castle-java.gemspec +21 -0
  58. data/spec/gemfile_with_source/pom.xml +103 -0
  59. data/spec/gemfile_with_source/src/main/java/.keep +0 -0
  60. data/spec/gemfile_with_source_and_custom_jarname/Gemfile +5 -0
  61. data/spec/gemfile_with_source_and_custom_jarname/Mavenfile +5 -0
  62. data/spec/gemfile_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
  63. data/spec/gemfile_with_source_and_custom_jarname/pom.xml +106 -0
  64. data/spec/gemfile_with_source_and_custom_jarname/src/main/java/.keep +0 -0
  65. data/spec/gemfile_with_source_and_no_jar/Gemfile +5 -0
  66. data/spec/gemfile_with_source_and_no_jar/Mavenfile +5 -0
  67. data/spec/gemfile_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
  68. data/spec/gemfile_with_source_and_no_jar/pom.xml +76 -0
  69. data/spec/gemfile_with_source_and_no_jar/src/main/java/.keep +0 -0
  70. data/spec/gemspec/Mavenfile +5 -0
  71. data/spec/gemspec/bouncy-castle-java.gemspec +20 -0
  72. data/spec/gemspec/pom.xml +73 -0
  73. data/spec/gemspec_in_profile/Mavenfile +7 -0
  74. data/spec/gemspec_in_profile/bouncy-castle-java.gemspec +20 -0
  75. data/spec/gemspec_in_profile/pom.xml +57 -0
  76. data/spec/gemspec_include_jars/Mavenfile +5 -0
  77. data/spec/gemspec_include_jars/bouncy-castle-java.gemspec +20 -0
  78. data/spec/gemspec_include_jars/pom.xml +74 -0
  79. data/spec/gemspec_no_rubygems_repo/Mavenfile +5 -0
  80. data/spec/gemspec_no_rubygems_repo/bouncy-castle-java.gemspec +17 -0
  81. data/spec/gemspec_no_rubygems_repo/pom.xml +64 -0
  82. data/spec/gemspec_prerelease/Mavenfile +5 -0
  83. data/spec/gemspec_prerelease/bouncy-castle-java.gemspec +17 -0
  84. data/spec/gemspec_prerelease/pom.xml +70 -0
  85. data/spec/gemspec_prerelease_snapshot/Mavenfile +5 -0
  86. data/spec/gemspec_prerelease_snapshot/bouncy-castle-java.gemspec +17 -0
  87. data/spec/gemspec_prerelease_snapshot/pom.xml +70 -0
  88. data/spec/gemspec_with_access_to_model/Mavenfile +7 -0
  89. data/spec/gemspec_with_access_to_model/bouncy-castle-java.gemspec +16 -0
  90. data/spec/gemspec_with_access_to_model/pom.xml +62 -0
  91. data/spec/gemspec_with_custom_source/Mavenfile +5 -0
  92. data/spec/gemspec_with_custom_source/bouncy-castle-java.gemspec +19 -0
  93. data/spec/gemspec_with_custom_source/pom.xml +107 -0
  94. data/spec/gemspec_with_custom_source/src/java/.keep +0 -0
  95. data/spec/gemspec_with_custom_source_and_custom_jarname/Mavenfile +5 -0
  96. data/spec/gemspec_with_custom_source_and_custom_jarname/bouncy-castle-java.gemspec +18 -0
  97. data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +107 -0
  98. data/spec/gemspec_with_custom_source_and_custom_jarname/src/java/.keep +0 -0
  99. data/spec/gemspec_with_extras/Mavenfile +21 -0
  100. data/spec/gemspec_with_extras/bouncy-castle-java.gemspec +20 -0
  101. data/spec/gemspec_with_extras/pom.xml +106 -0
  102. data/spec/gemspec_with_prereleased_dependency/Mavenfile +5 -0
  103. data/spec/gemspec_with_prereleased_dependency/bouncy-castle-java.gemspec +17 -0
  104. data/spec/gemspec_with_prereleased_dependency/pom.xml +80 -0
  105. data/spec/gemspec_with_prereleased_dependency_and_no_repo/Mavenfile +5 -0
  106. data/spec/gemspec_with_prereleased_dependency_and_no_repo/bouncy-castle-java.gemspec +17 -0
  107. data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +76 -0
  108. data/spec/gemspec_with_source/Mavenfile +5 -0
  109. data/spec/gemspec_with_source/bouncy-castle-java.gemspec +21 -0
  110. data/spec/gemspec_with_source/pom.xml +103 -0
  111. data/spec/gemspec_with_source/src/main/java/.keep +0 -0
  112. data/spec/gemspec_with_source_and_custom_jarname/Mavenfile +5 -0
  113. data/spec/gemspec_with_source_and_custom_jarname/bouncy-castle-java.gemspec +19 -0
  114. data/spec/gemspec_with_source_and_custom_jarname/pom.xml +106 -0
  115. data/spec/gemspec_with_source_and_custom_jarname/src/main/java/.keep +0 -0
  116. data/spec/gemspec_with_source_and_no_jar/Mavenfile +5 -0
  117. data/spec/gemspec_with_source_and_no_jar/bouncy-castle-java.gemspec +19 -0
  118. data/spec/gemspec_with_source_and_no_jar/pom.xml +76 -0
  119. data/spec/gemspec_with_source_and_no_jar/src/main/java/.keep +0 -0
  120. data/spec/mavenfile/Mavenfile +894 -0
  121. data/spec/my/my-1.0.gem +0 -0
  122. data/spec/my/my.gemspec +10 -0
  123. data/spec/pom.xml +423 -0
  124. data/spec/pom_from_jarfile/Jarfile +3 -0
  125. data/spec/pom_from_jarfile/pom.xml +39 -0
  126. data/spec/pom_maven_alternative_style/pom.rb +57 -6
  127. data/spec/pom_maven_hash_style/pom.rb +56 -175
  128. data/spec/pom_maven_style/pom.rb +59 -6
  129. data/spec/pom_spec.rb +1 -1
  130. data/spec/pom_with_execute/pom.xml +92 -0
  131. metadata +246 -2
@@ -19,7 +19,6 @@
19
19
  # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  #
21
21
  require 'fileutils'
22
- require 'java' if defined? JRUBY_VERSION
23
22
  require 'stringio'
24
23
  require 'maven/tools/model'
25
24
  require 'maven/tools/dsl'
@@ -31,9 +30,9 @@ module Maven
31
30
  class POM
32
31
  include Maven::Tools::DSL
33
32
 
34
- def eval_spec( s )
33
+ def eval_spec( s, snapshot )
35
34
  @model = tesla do
36
- spec s
35
+ spec s, nil, :snapshot => snapshot, :no_rubygems_repo => true
37
36
  end
38
37
  end
39
38
 
@@ -60,9 +59,9 @@ module Maven
60
59
  end
61
60
  end
62
61
 
63
- def initialize( file = nil )
62
+ def initialize( file = nil, snapshot = false )
64
63
  if file.is_a? Gem::Specification
65
- eval_spec( file )
64
+ eval_spec( file, snapshot )
66
65
  else
67
66
  eval_file( file )
68
67
  end
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.0.0.rc2'.freeze
23
+ VERSION = '1.0.0.rc3'.freeze
24
24
  end
25
25
  end
@@ -22,15 +22,12 @@ module Maven
22
22
  module Tools
23
23
  unless defined? VERSIONS
24
24
  VERSIONS = {
25
- :jruby_rack => "1.1.13.2",
26
- :assembly_plugin => "2.4",
27
- :war_plugin => "2.2",
28
25
  :jar_plugin => "2.4",
29
26
  :clean_plugin => "2.4",
30
- :jruby_plugins => "1.0.0-rc4",
31
- :bundler_version => "1.3.5",
32
- :jruby_version => "1.7.6",
33
- :tesla_version => "0.0.8"
27
+ :jruby_plugins => "1.0.1",
28
+ :bundler_version => "1.6.2",
29
+ :jruby_version => "1.7.12",
30
+ :tesla_version => "0.1.0"
34
31
  }.freeze
35
32
  end
36
33
  end
@@ -22,7 +22,8 @@ module Maven
22
22
  @io.print "#{indent}<#{name}"
23
23
  attr.each do |k,v|
24
24
  @io.puts
25
- @io.print "#{indent} #{k.to_s[1..-1]}='#{v}'"
25
+ vv = v.gsub( /"/, '&quot;' )
26
+ @io.print "#{indent} #{k.to_s[1..-1]}=\"#{vv}\""
26
27
  end
27
28
  @io.puts ">"
28
29
  inc
@@ -42,15 +43,19 @@ module Maven
42
43
  end
43
44
 
44
45
  def tag( name, value )
45
- unless value.nil?
46
- name = camel_case_lower( name )
47
- @io.puts "#{indent}<#{name}>#{value}</#{name}>"
46
+ if value != nil
47
+ if value.respond_to? :to_xml
48
+ @io.puts "#{indent}#{value.to_xml}"
49
+ else
50
+ name = camel_case_lower( name )
51
+ @io.puts "#{indent}<#{name}>#{escape_value( value )}</#{name}>"
52
+ end
48
53
  end
49
54
  end
50
55
 
51
56
  def raw_tag( name, value )
52
57
  unless value.nil?
53
- @io.puts "#{indent}<#{name}>#{value}</#{name}>"
58
+ @io.puts "#{indent}<#{name}>#{escape_value( value )}</#{name}>"
54
59
  end
55
60
  end
56
61
 
@@ -119,7 +124,6 @@ module Maven
119
124
 
120
125
  def accept_hash( name, hash )
121
126
  unless hash.empty?
122
- # TODO attributes
123
127
  attr = hash.select do |k, v|
124
128
  [ k, v ] if k.to_s.match( /^@/ )
125
129
  end
@@ -128,14 +132,25 @@ module Maven
128
132
  case v
129
133
  when Array
130
134
  accept_array( k, v )
135
+ when Hash
136
+ accept_hash( k, v )
131
137
  else
132
- # TODO xml content
133
138
  tag( k, v ) unless k.to_s.match( /^@/ )
134
139
  end
135
140
  end
136
141
  end_tag( name )
137
142
  end
138
143
  end
144
+
145
+ def escape_value( value )
146
+ value = value.to_s
147
+ value.gsub!( /&/, '&amp;' )
148
+ # undo double quote, somehow xyz.gemspec.rz have encoded values
149
+ value.gsub!( /&amp;(amp|lt|gt);/, '&\1;' )
150
+ value.gsub!( /</, '&lt;' )
151
+ value.gsub!( />/, '&gt;' )
152
+ value
153
+ end
139
154
 
140
155
  def visit( model )
141
156
  model.attributes.each do |k, v|
@@ -0,0 +1,39 @@
1
+ # -*- mode:ruby -*-
2
+ # -*- coding: utf-8 -*-
3
+ require File.expand_path('lib/maven/tools/version.rb')
4
+ Gem::Specification.new do |s|
5
+ s.name = 'maven-tools'
6
+ s.version = Maven::Tools::VERSION.dup
7
+
8
+ s.summary = 'helpers for maven related tasks'
9
+ s.description = 'adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc'
10
+ s.homepage = 'http://github.com/torquebox/maven-tools'
11
+
12
+ s.authors = ['Christian Meier']
13
+ s.email = ['m.kristian@web.de']
14
+
15
+ s.license = 'MIT'
16
+
17
+ s.files += Dir['*.gemspec']
18
+ s.files += Dir['*file']
19
+ s.files += Dir['lib/**/*rb']
20
+ s.files += Dir['spec/**/*rb']
21
+ s.files += Dir['MIT-LICENSE'] + Dir['*.md']
22
+ s.test_files += Dir['spec/**/*.rb']
23
+ s.test_files += Dir['spec/**/*.java']
24
+ s.test_files += Dir['spec/**/*.xml']
25
+ s.test_files += Dir['spec/**/*file']
26
+ s.test_files += Dir['spec/**/Gemfile.lock']
27
+ s.test_files += Dir['spec/**/.keep']
28
+ s.test_files += Dir['spec/**/*gemspec']
29
+ s.test_files += Dir['spec/**/*gem']
30
+
31
+ s.add_runtime_dependency 'virtus', '~> 1.0'
32
+
33
+ # get them out from here until jruby-maven-plugin installs test gems somewhere else then runtime gems
34
+
35
+ s.add_development_dependency 'rake', '~> 10.0'
36
+ s.add_development_dependency 'minitest', '~> 5.3'
37
+ end
38
+
39
+ # vim: syntax=Ruby
@@ -30,15 +30,35 @@ describe Maven::Tools::Artifact do
30
30
  end
31
31
 
32
32
  it 'should convert ruby version contraints - jars' do
33
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '=1' ).to_s.must_equal 'rubygems:asd:jar:[1,1.0.0.0.0.1)'
34
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '>=1' ).to_s.must_equal 'rubygems:asd:jar:[1,)'
35
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<=1' ).to_s.must_equal 'rubygems:asd:jar:[0,1]'
36
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '>1' ).to_s.must_equal 'rubygems:asd:jar:(1,)'
37
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<1' ).to_s.must_equal 'rubygems:asd:jar:[0,1)'
38
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '!1' ).to_s.must_equal 'rubygems:asd:jar:(1,)'
39
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<2', '>1' ).to_s.must_equal 'rubygems:asd:jar:(1,2)'
40
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<=2', '>1' ).to_s.must_equal 'rubygems:asd:jar:(1,2]'
41
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<2', '>=1' ).to_s.must_equal 'rubygems:asd:jar:[1,2)'
42
- Maven::Tools::Artifact.from( :jar, 'rubygems:asd', '<=2', '>=1' ).to_s.must_equal 'rubygems:asd:jar:[1,2]'
33
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '=1' ).to_s.must_equal 'org.something:asd:jar:[1,1.0.0.0.0.1)'
34
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '>=1' ).to_s.must_equal 'org.something:asd:jar:[1,)'
35
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=1' ).to_s.must_equal 'org.something:asd:jar:[0,1]'
36
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
37
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<1' ).to_s.must_equal 'org.something:asd:jar:[0,1)'
38
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '!1' ).to_s.must_equal 'org.something:asd:jar:(1,)'
39
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2)'
40
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=2', '>1' ).to_s.must_equal 'org.something:asd:jar:(1,2]'
41
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<2', '>=1' ).to_s.must_equal 'org.something:asd:jar:[1,2)'
42
+ Maven::Tools::Artifact.from( :jar, 'org.something:asd', '<=2', '>=1' ).to_s.must_equal 'org.something:asd:jar:[1,2]'
43
+ end
44
+
45
+ it 'passes in scope to artifact' do
46
+ a = Maven::Tools::Artifact.from( :jar, 'org.something:asd', '1' )
47
+ a.to_s.must_equal 'org.something:asd:jar:1'
48
+ a[ :scope ].must_be_nil
49
+ a = Maven::Tools::Artifact.from( :jar, 'org.something:asd', '1', :scope => :provided )
50
+ a.to_s.must_equal 'org.something:asd:jar:1'
51
+ a[ :scope ].must_equal :provided
52
+ end
53
+ it 'passes in exclusions to artifact' do
54
+ a = Maven::Tools::Artifact.from( :jar, 'org.something:asd', '1' )
55
+ a.to_s.must_equal 'org.something:asd:jar:1'
56
+ a[ :exclusions ].must_be_nil
57
+ a = Maven::Tools::Artifact.from( :jar, 'org.something:asd', '1', :exclusions => ["org.something:dsa"] )
58
+ a.to_s.must_equal 'org.something:asd:jar:1:[org.something:dsa]'
59
+ a[ :exclusions ].must_equal [ 'org.something:dsa' ]
60
+ a = Maven::Tools::Artifact.from( :jar, 'org.something:asd', '1', :exclusions => ["org.something:dsa", "org.anything:qwe"] )
61
+ a.to_s.must_equal 'org.something:asd:jar:1:[org.something:dsa,org.anything:qwe]'
62
+ a[ :exclusions ].must_equal [ 'org.something:dsa', 'org.anything:qwe' ]
43
63
  end
44
64
  end
@@ -13,7 +13,7 @@ describe Maven::Tools::Coordinate do
13
13
  subject.to_version('!2.3.4').must_equal "(2.3.4,)"
14
14
  subject.to_version('!2.3.4.rc').must_equal "(2.3.4.rc-SNAPSHOT,)"
15
15
  subject.to_version('=2.3.4').must_equal "[2.3.4,2.3.4.0.0.0.0.1)"
16
- subject.to_version('=2.3.4.alpha').must_equal "[2.3.4.alpha-SNAPSHOT,2.3.4.alpha.0.0.0.0.1)"
16
+ subject.to_version('=2.3.4.alpha').must_equal "2.3.4.alpha"
17
17
  subject.to_version('~>1.8.2').must_equal "[1.8.2,1.8.99999]"
18
18
  subject.to_version('~>1.8.2.beta').must_equal "[1.8.2.beta-SNAPSHOT,1.8.99999]"
19
19
  subject.to_version('~>1.8.2.beta123.12').must_equal "[1.8.2.beta123.12-SNAPSHOT,1.8.99999]"
@@ -0,0 +1,7 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec
4
+
5
+ gem 'virtus', :require => false
6
+
7
+ # vim: syntax=Ruby
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemfile
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,20 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ require './bouncy-castle-version.rb'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'bouncy-castle-java'
7
+ s.version = "1.5.0#{BouncyCastle::VERSION_}"
8
+ s.author = 'Hiroshi Nakamura'
9
+ s.email = [ 'nahi@ruby-lang.org' ]
10
+ s.rubyforge_project = "jruby-extras"
11
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
12
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
13
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
14
+ s.platform = 'java'
15
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
16
+ s.requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{BouncyCastle::MAVEN_VERSION}"
17
+ s.requirements << "jar org.bouncycastle:bcprov-jdk15on, #{BouncyCastle::MAVEN_VERSION}"
18
+ end
19
+
20
+ # vim: syntax=Ruby
@@ -0,0 +1,79 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Copyright (c) 2012 to original author or authors
5
+ All rights reserved. This program and the accompanying materials
6
+ are made available under the terms of the Eclipse Public License v1.0
7
+ which accompanies this distribution, and is available at
8
+ http://www.eclipse.org/legal/epl-v10.html
9
+
10
+ -->
11
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
12
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
13
+ <modelVersion>4.0.0</modelVersion>
14
+ <groupId>rubygems</groupId>
15
+ <artifactId>bouncy-castle-java</artifactId>
16
+ <version>1.5.0149</version>
17
+ <packaging>gem</packaging>
18
+ <name>Gem redistribution of Bouncy Castle jars</name>
19
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
20
+ <description>Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html</description>
21
+ <developers>
22
+ <developer>
23
+ <name>Hiroshi Nakamura</name>
24
+ <email>nahi@ruby-lang.org</email>
25
+ </developer>
26
+ </developers>
27
+ <scm>
28
+ <connection>https://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java.git</connection>
29
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
30
+ </scm>
31
+ <properties>
32
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
+ <jruby.plugins.version>1.0.1</jruby.plugins.version>
34
+ </properties>
35
+ <dependencies>
36
+ <dependency>
37
+ <groupId>rubygems</groupId>
38
+ <artifactId>virtus</artifactId>
39
+ <version>[0,)</version>
40
+ <type>gem</type>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>org.bouncycastle</groupId>
44
+ <artifactId>bcpkix-jdk15on</artifactId>
45
+ <version>1.49</version>
46
+ </dependency>
47
+ <dependency>
48
+ <groupId>org.bouncycastle</groupId>
49
+ <artifactId>bcprov-jdk15on</artifactId>
50
+ <version>1.49</version>
51
+ </dependency>
52
+ </dependencies>
53
+ <repositories>
54
+ <repository>
55
+ <id>rubygems-releases</id>
56
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
57
+ </repository>
58
+ </repositories>
59
+ <build>
60
+ <extensions>
61
+ <extension>
62
+ <groupId>de.saumya.mojo</groupId>
63
+ <artifactId>gem-extension</artifactId>
64
+ <version>${jruby.plugins.version}</version>
65
+ </extension>
66
+ </extensions>
67
+ <directory>${basedir}/pkg</directory>
68
+ <plugins>
69
+ <plugin>
70
+ <groupId>de.saumya.mojo</groupId>
71
+ <artifactId>gem-maven-plugin</artifactId>
72
+ <version>${jruby.plugins.version}</version>
73
+ <configuration>
74
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
75
+ </configuration>
76
+ </plugin>
77
+ </plugins>
78
+ </build>
79
+ </project>
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemfile :include_jars => true
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,20 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ require './bouncy-castle-version.rb'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'bouncy-castle-java'
7
+ s.version = "1.5.0#{BouncyCastle::VERSION_}"
8
+ s.author = 'Hiroshi Nakamura'
9
+ s.email = [ 'nahi@ruby-lang.org' ]
10
+ s.rubyforge_project = "jruby-extras"
11
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
12
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
13
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
14
+ s.platform = 'java'
15
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
16
+ s.requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{BouncyCastle::MAVEN_VERSION}"
17
+ s.requirements << "jar org.bouncycastle:bcprov-jdk15on, #{BouncyCastle::MAVEN_VERSION}"
18
+ end
19
+
20
+ # vim: syntax=Ruby
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Copyright (c) 2012 to original author or authors
5
+ All rights reserved. This program and the accompanying materials
6
+ are made available under the terms of the Eclipse Public License v1.0
7
+ which accompanies this distribution, and is available at
8
+ http://www.eclipse.org/legal/epl-v10.html
9
+
10
+ -->
11
+ <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
12
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
13
+ <modelVersion>4.0.0</modelVersion>
14
+ <groupId>rubygems</groupId>
15
+ <artifactId>bouncy-castle-java</artifactId>
16
+ <version>1.5.0149</version>
17
+ <packaging>gem</packaging>
18
+ <name>Gem redistribution of Bouncy Castle jars</name>
19
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
20
+ <description>Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html</description>
21
+ <developers>
22
+ <developer>
23
+ <name>Hiroshi Nakamura</name>
24
+ <email>nahi@ruby-lang.org</email>
25
+ </developer>
26
+ </developers>
27
+ <scm>
28
+ <connection>https://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java.git</connection>
29
+ <url>http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/</url>
30
+ </scm>
31
+ <properties>
32
+ <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
+ <jruby.plugins.version>1.0.1</jruby.plugins.version>
34
+ </properties>
35
+ <dependencies>
36
+ <dependency>
37
+ <groupId>org.bouncycastle</groupId>
38
+ <artifactId>bcpkix-jdk15on</artifactId>
39
+ <version>1.49</version>
40
+ </dependency>
41
+ <dependency>
42
+ <groupId>org.bouncycastle</groupId>
43
+ <artifactId>bcprov-jdk15on</artifactId>
44
+ <version>1.49</version>
45
+ </dependency>
46
+ </dependencies>
47
+ <repositories>
48
+ <repository>
49
+ <id>rubygems-releases</id>
50
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
51
+ </repository>
52
+ </repositories>
53
+ <build>
54
+ <extensions>
55
+ <extension>
56
+ <groupId>de.saumya.mojo</groupId>
57
+ <artifactId>gem-extension</artifactId>
58
+ <version>${jruby.plugins.version}</version>
59
+ </extension>
60
+ </extensions>
61
+ <directory>${basedir}/pkg</directory>
62
+ <plugins>
63
+ <plugin>
64
+ <groupId>de.saumya.mojo</groupId>
65
+ <artifactId>gem-maven-plugin</artifactId>
66
+ <version>${jruby.plugins.version}</version>
67
+ <configuration>
68
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
69
+ <includeDependencies>true</includeDependencies>
70
+ </configuration>
71
+ </plugin>
72
+ </plugins>
73
+ </build>
74
+ </project>