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
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,7 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemfile
4
+
5
+ properties( :version_from_model => model.version )
6
+
7
+ # vim: syntax=Ruby
@@ -0,0 +1,16 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bouncy-castle-java'
5
+ s.version = "1.5.0"
6
+ s.author = 'Hiroshi Nakamura'
7
+ s.email = [ 'nahi@ruby-lang.org' ]
8
+ s.rubyforge_project = "jruby-extras"
9
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
10
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
11
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
12
+ s.platform = 'java'
13
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
14
+ end
15
+
16
+ # vim: syntax=Ruby
@@ -0,0 +1,62 @@
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.0</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
+ <version_from_model>1.5.0</version_from_model>
35
+ </properties>
36
+ <repositories>
37
+ <repository>
38
+ <id>rubygems-releases</id>
39
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
40
+ </repository>
41
+ </repositories>
42
+ <build>
43
+ <extensions>
44
+ <extension>
45
+ <groupId>de.saumya.mojo</groupId>
46
+ <artifactId>gem-extension</artifactId>
47
+ <version>${jruby.plugins.version}</version>
48
+ </extension>
49
+ </extensions>
50
+ <directory>${basedir}/pkg</directory>
51
+ <plugins>
52
+ <plugin>
53
+ <groupId>de.saumya.mojo</groupId>
54
+ <artifactId>gem-maven-plugin</artifactId>
55
+ <version>${jruby.plugins.version}</version>
56
+ <configuration>
57
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
58
+ </configuration>
59
+ </plugin>
60
+ </plugins>
61
+ </build>
62
+ </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
+ gemspec :source => 'src/java'
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,19 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bouncy-castle-java'
5
+ s.version = "1.5.0"
6
+ s.author = 'Hiroshi Nakamura'
7
+ s.email = [ 'nahi@ruby-lang.org' ]
8
+ s.rubyforge_project = "jruby-extras"
9
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
10
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
11
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
12
+ s.platform = 'java'
13
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
14
+ s.add_dependency 'thor', '>= 0.14.6', '< 2.0'
15
+ s.add_development_dependency 'rake', '~> 10.0'
16
+ s.require_path = 'mylib'
17
+ end
18
+
19
+ # vim: syntax=Ruby
@@ -0,0 +1,107 @@
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.0</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>thor</artifactId>
39
+ <version>[0.14.6,2.0)</version>
40
+ <type>gem</type>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>rubygems</groupId>
44
+ <artifactId>rake</artifactId>
45
+ <version>[10.0,10.99999]</version>
46
+ <type>gem</type>
47
+ <scope>test</scope>
48
+ </dependency>
49
+ </dependencies>
50
+ <repositories>
51
+ <repository>
52
+ <id>rubygems-releases</id>
53
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
54
+ </repository>
55
+ </repositories>
56
+ <build>
57
+ <sourceDirectory>src/java</sourceDirectory>
58
+ <extensions>
59
+ <extension>
60
+ <groupId>de.saumya.mojo</groupId>
61
+ <artifactId>gem-extension</artifactId>
62
+ <version>${jruby.plugins.version}</version>
63
+ </extension>
64
+ </extensions>
65
+ <directory>${basedir}/pkg</directory>
66
+ <plugins>
67
+ <plugin>
68
+ <artifactId>maven-jar-plugin</artifactId>
69
+ <version>2.4</version>
70
+ <executions>
71
+ <execution>
72
+ <phase>prepare-package</phase>
73
+ <goals>
74
+ <goal>jar</goal>
75
+ </goals>
76
+ </execution>
77
+ </executions>
78
+ <configuration>
79
+ <outputDirectory>mylib</outputDirectory>
80
+ <finalName>bouncy-castle-java</finalName>
81
+ </configuration>
82
+ </plugin>
83
+ <plugin>
84
+ <artifactId>maven-clean-plugin</artifactId>
85
+ <version>2.4</version>
86
+ <configuration>
87
+ <filesets>
88
+ <fileset>
89
+ <directory>mylib</directory>
90
+ <includes>
91
+ <include>bouncy-castle-java.jar</include>
92
+ </includes>
93
+ </fileset>
94
+ </filesets>
95
+ </configuration>
96
+ </plugin>
97
+ <plugin>
98
+ <groupId>de.saumya.mojo</groupId>
99
+ <artifactId>gem-maven-plugin</artifactId>
100
+ <version>${jruby.plugins.version}</version>
101
+ <configuration>
102
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
103
+ </configuration>
104
+ </plugin>
105
+ </plugins>
106
+ </build>
107
+ </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
+ gemspec :source => 'src/java', :jar => 'green'
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,18 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bouncy-castle-java'
5
+ s.version = "1.5.0"
6
+ s.author = 'Hiroshi Nakamura'
7
+ s.email = [ 'nahi@ruby-lang.org' ]
8
+ s.rubyforge_project = "jruby-extras"
9
+ s.homepage = 'http://github.com/jruby/jruby/tree/master/gems/bouncy-castle-java/'
10
+ s.summary = 'Gem redistribution of Bouncy Castle jars'
11
+ s.description = 'Gem redistribution of "Legion of the Bouncy Castle Java cryptography APIs" jars at http://www.bouncycastle.org/java.html'
12
+ s.platform = 'java'
13
+ s.files = ['README', 'LICENSE.html', 'lib/bouncy-castle-java.rb' ] + Dir['lib/bc*.jar' ]
14
+ s.add_dependency 'thor', '>= 0.14.6', '< 2.0'
15
+ s.add_development_dependency 'rake', '~> 10.0'
16
+ end
17
+
18
+ # vim: syntax=Ruby
@@ -0,0 +1,107 @@
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.0</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>thor</artifactId>
39
+ <version>[0.14.6,2.0)</version>
40
+ <type>gem</type>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>rubygems</groupId>
44
+ <artifactId>rake</artifactId>
45
+ <version>[10.0,10.99999]</version>
46
+ <type>gem</type>
47
+ <scope>test</scope>
48
+ </dependency>
49
+ </dependencies>
50
+ <repositories>
51
+ <repository>
52
+ <id>rubygems-releases</id>
53
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
54
+ </repository>
55
+ </repositories>
56
+ <build>
57
+ <sourceDirectory>src/java</sourceDirectory>
58
+ <extensions>
59
+ <extension>
60
+ <groupId>de.saumya.mojo</groupId>
61
+ <artifactId>gem-extension</artifactId>
62
+ <version>${jruby.plugins.version}</version>
63
+ </extension>
64
+ </extensions>
65
+ <directory>${basedir}/pkg</directory>
66
+ <plugins>
67
+ <plugin>
68
+ <artifactId>maven-jar-plugin</artifactId>
69
+ <version>2.4</version>
70
+ <executions>
71
+ <execution>
72
+ <phase>prepare-package</phase>
73
+ <goals>
74
+ <goal>jar</goal>
75
+ </goals>
76
+ </execution>
77
+ </executions>
78
+ <configuration>
79
+ <outputDirectory>lib</outputDirectory>
80
+ <finalName>green</finalName>
81
+ </configuration>
82
+ </plugin>
83
+ <plugin>
84
+ <artifactId>maven-clean-plugin</artifactId>
85
+ <version>2.4</version>
86
+ <configuration>
87
+ <filesets>
88
+ <fileset>
89
+ <directory>lib</directory>
90
+ <includes>
91
+ <include>green.jar</include>
92
+ </includes>
93
+ </fileset>
94
+ </filesets>
95
+ </configuration>
96
+ </plugin>
97
+ <plugin>
98
+ <groupId>de.saumya.mojo</groupId>
99
+ <artifactId>gem-maven-plugin</artifactId>
100
+ <version>${jruby.plugins.version}</version>
101
+ <configuration>
102
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
103
+ </configuration>
104
+ </plugin>
105
+ </plugins>
106
+ </build>
107
+ </project>
@@ -0,0 +1,5 @@
1
+ #-*- mode: ruby -*-
2
+
3
+ gemspec
4
+
5
+ # vim: syntax=Ruby
@@ -0,0 +1,21 @@
1
+ #-*- mode: ruby -*-
2
+ gemfile :include_jars => true
3
+
4
+ resource do
5
+ directory '../../lib/ruby/shared/'
6
+ target_path '${basedir}/lib'
7
+ includes 'bouncy-castle-java.rb'
8
+ end
9
+
10
+ plugin( :clean, '2.5' ) do
11
+ execute_goals( :clean,
12
+ :phase => :clean,
13
+ :id => 'clean-lib',
14
+ :filesets => [ { :directory => '${basedir}/lib' } ],
15
+ :failOnError => false )
16
+ end
17
+
18
+ properties( 'tesla.dump.pom' => 'pom.xml',
19
+ 'tesla.dump.readonly' => true )
20
+
21
+ # 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,106 @@
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
+ <tesla.dump.pom>pom.xml</tesla.dump.pom>
35
+ <tesla.dump.readonly>true</tesla.dump.readonly>
36
+ </properties>
37
+ <dependencies>
38
+ <dependency>
39
+ <groupId>org.bouncycastle</groupId>
40
+ <artifactId>bcpkix-jdk15on</artifactId>
41
+ <version>1.49</version>
42
+ </dependency>
43
+ <dependency>
44
+ <groupId>org.bouncycastle</groupId>
45
+ <artifactId>bcprov-jdk15on</artifactId>
46
+ <version>1.49</version>
47
+ </dependency>
48
+ </dependencies>
49
+ <repositories>
50
+ <repository>
51
+ <id>rubygems-releases</id>
52
+ <url>http://rubygems-proxy.torquebox.org/releases</url>
53
+ </repository>
54
+ </repositories>
55
+ <build>
56
+ <extensions>
57
+ <extension>
58
+ <groupId>de.saumya.mojo</groupId>
59
+ <artifactId>gem-extension</artifactId>
60
+ <version>${jruby.plugins.version}</version>
61
+ </extension>
62
+ </extensions>
63
+ <resources>
64
+ <resource>
65
+ <targetPath>${basedir}/lib</targetPath>
66
+ <directory>../../lib/ruby/shared/</directory>
67
+ <includes>
68
+ <include>bouncy-castle-java.rb</include>
69
+ </includes>
70
+ </resource>
71
+ </resources>
72
+ <directory>${basedir}/pkg</directory>
73
+ <plugins>
74
+ <plugin>
75
+ <groupId>de.saumya.mojo</groupId>
76
+ <artifactId>gem-maven-plugin</artifactId>
77
+ <version>${jruby.plugins.version}</version>
78
+ <configuration>
79
+ <gemspec>bouncy-castle-java.gemspec</gemspec>
80
+ <includeDependencies>true</includeDependencies>
81
+ </configuration>
82
+ </plugin>
83
+ <plugin>
84
+ <artifactId>maven-clean-plugin</artifactId>
85
+ <version>2.5</version>
86
+ <executions>
87
+ <execution>
88
+ <id>clean-lib</id>
89
+ <phase>clean</phase>
90
+ <goals>
91
+ <goal>clean</goal>
92
+ </goals>
93
+ <configuration>
94
+ <filesets>
95
+ <fileset>
96
+ <directory>${basedir}/lib</directory>
97
+ </fileset>
98
+ </filesets>
99
+ <failOnError>false</failOnError>
100
+ </configuration>
101
+ </execution>
102
+ </executions>
103
+ </plugin>
104
+ </plugins>
105
+ </build>
106
+ </project>