maven-tools 1.0.0.rc5 → 1.0.0.rc6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/maven/tools/artifact.rb +1 -1
  3. data/lib/maven/tools/coordinate.rb +1 -1
  4. data/lib/maven/tools/dsl.rb +50 -15
  5. data/lib/maven/tools/version.rb +1 -1
  6. data/lib/maven/tools/versions.rb +3 -3
  7. data/spec/gemfile/pom.xml +1 -1
  8. data/spec/gemfile_include_jars/pom.xml +2 -1
  9. data/spec/gemfile_with_access_to_model/pom.xml +1 -1
  10. data/spec/gemfile_with_custom_source/pom.xml +2 -1
  11. data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +2 -1
  12. data/spec/gemfile_with_extras/pom.xml +2 -1
  13. data/spec/gemfile_with_groups/pom.xml +1 -1
  14. data/spec/gemfile_with_groups_and_lockfile/pom.xml +1 -1
  15. data/spec/gemfile_with_lock/pom.xml +1 -1
  16. data/spec/gemfile_with_path/pom.xml +1 -1
  17. data/spec/gemfile_with_source/pom.xml +2 -1
  18. data/spec/gemfile_with_source_and_custom_jarname/pom.xml +2 -1
  19. data/spec/gemfile_with_source_and_no_jar/pom.xml +1 -1
  20. data/spec/gemfile_with_test_group/pom.xml +1 -1
  21. data/spec/gemfile_without_gemspec/pom.xml +1 -1
  22. data/spec/gemspec/pom.xml +1 -1
  23. data/spec/gemspec_in_profile/pom.xml +1 -1
  24. data/spec/gemspec_include_jars/pom.xml +2 -1
  25. data/spec/gemspec_no_rubygems_repo/pom.xml +1 -1
  26. data/spec/gemspec_prerelease/pom.xml +1 -1
  27. data/spec/gemspec_prerelease_snapshot/pom.xml +1 -1
  28. data/spec/gemspec_with_access_to_model/pom.xml +1 -1
  29. data/spec/gemspec_with_custom_source/pom.xml +2 -1
  30. data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +2 -1
  31. data/spec/gemspec_with_extras/pom.xml +2 -1
  32. data/spec/gemspec_with_prereleased_dependency/pom.xml +1 -1
  33. data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +1 -1
  34. data/spec/gemspec_with_source/pom.xml +2 -1
  35. data/spec/gemspec_with_source_and_custom_jarname/pom.xml +2 -1
  36. data/spec/gemspec_with_source_and_no_jar/pom.xml +1 -1
  37. data/spec/pom_from_jarfile/pom.xml +1 -1
  38. data/spec/pom_maven_style/pom.rb +119 -86
  39. data/spec/pom_with_execute/pom.xml +1 -1
  40. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 824ec21a7dc9f640e0054c0d6169257d278a8e16
4
- data.tar.gz: 2db21fe36ab4f4eaeea4c3a43bcd1e350fa7a6ef
3
+ metadata.gz: 1601cbf1e73ea797bebffc753c925173153824f7
4
+ data.tar.gz: 08609fc9a6ea13a191458d7c5f1c449823be4500
5
5
  SHA512:
6
- metadata.gz: 9a633083e857fa127017fd8f65eecd835e83c87524612aae4b374dbd28685ef658d3be9f508cd308166efd1ee1f4443a5d1722107e20dac4b29f3758a78047a8
7
- data.tar.gz: facb9734d8a29364479fb433f010d10eebfed726b572a6823b1266d943c712e7648b1e7efbee87ca0912dbcb7e9ae2d704c6410d6fe58b00d9b16d94ea38cefe
6
+ metadata.gz: a2b2551400405f9aec9f3c09a98c58790ea402f53244055847c6701f1af2eb9e6972be4a8ac7d65728a32e3c192f1953670d7e8235c2127a34fb191fb0359446
7
+ data.tar.gz: e4928cbe9160003568ff70ba3c89e5935fa54495a891cc83da4b1a5fcd67f385b48c4af5a4cf9dfe6eaa474fc6667c8c56cd682002641c334cb26e6f9308c514
@@ -152,7 +152,7 @@ module Maven
152
152
 
153
153
  def exclusions
154
154
  if key?( :exclusions )
155
- self[:exclusions].inspect.gsub( /[\[\]" ]/, '' ).split /,/
155
+ self[:exclusions].inspect.gsub( /[\[\]" ]/, '' ).split( /,/ )
156
156
  end
157
157
  end
158
158
 
@@ -122,7 +122,7 @@ module Maven
122
122
  end
123
123
 
124
124
  def snapshot_version( val )
125
- if val.match /[a-z]|[A-Z]/ and not val.match /-SNAPSHOT|[${}]/
125
+ if val.match(/[a-z]|[A-Z]/) && !val.match(/-SNAPSHOT|[${}]/)
126
126
  val + '-SNAPSHOT'
127
127
  else
128
128
  val
@@ -245,8 +245,12 @@ module Maven
245
245
  source_directory source
246
246
  end
247
247
  end
248
- if jar && ( source ||
249
- ::File.exists?( ::File.join( basedir, 'src', 'main', 'java' ) ) ) && spec.platform.to_s.match( /java|jruby/ )
248
+ if jar && ( source ||
249
+ ::File.exists?( ::File.join( basedir, 'src', 'main', 'java' ) ) )
250
+ unless spec.nil? || spec.platform.to_s.match( /java|jruby/ )
251
+ warn "gem is not a java platform gem but has a jar and source"
252
+ end
253
+
250
254
  plugin( :jar, VERSIONS[ :jar_plugin ],
251
255
  :outputDirectory => output,
252
256
  :finalName => jar ) do
@@ -254,7 +258,7 @@ module Maven
254
258
  end
255
259
  plugin( :clean, VERSIONS[ :clean_plugin ],
256
260
  :filesets => [ { :directory => output,
257
- :includes => [ "#{jar}.jar" ] } ] )
261
+ :includes => [ "#{jar}.jar", '*/**/*.jar' ] } ] )
258
262
  true
259
263
  else
260
264
  false
@@ -299,7 +303,7 @@ module Maven
299
303
  file.populate_unlocked do |dsl|
300
304
  setup_jruby( dsl.jruby )
301
305
  dsl.artifacts.each do |a|
302
- dependency a
306
+ _dependency a
303
307
  end
304
308
  end
305
309
  else
@@ -395,6 +399,7 @@ module Maven
395
399
  config = { :gemspec => name.sub( /^#{basedir}\/?/, '' ) }
396
400
  if options[ :include_jars ] || options[ 'include_jars' ]
397
401
  config[ :includeDependencies ] = true
402
+ config[ :useRepositoryLayout ] = true
398
403
  end
399
404
  jruby_plugin!( :gem, config )
400
405
 
@@ -409,7 +414,7 @@ module Maven
409
414
 
410
415
  unless deps.java_runtime.empty?
411
416
  deps.java_runtime.each do |d|
412
- dependency Maven::Tools::Artifact.new( *d )
417
+ _dependency Maven::Tools::Artifact.new( *d )
413
418
  end
414
419
  end
415
420
  end
@@ -430,6 +435,21 @@ module Maven
430
435
  end
431
436
  private :all_deps
432
437
 
438
+ def licenses
439
+ yield
440
+ end
441
+ alias :developers :licenses
442
+ alias :contributors :licenses
443
+ alias :mailing_lists :licenses
444
+ alias :notifiers :licenses
445
+ alias :dependencies :licenses
446
+ alias :repositories :licenses
447
+ alias :plugin_repositories :licenses
448
+ alias :extensions :licenses
449
+ alias :resources :licenses
450
+ alias :testResources :licenses
451
+ alias :plugins :licenses
452
+
433
453
  def build( &block )
434
454
  build = @current.build ||= Build.new
435
455
  nested_block( :build, build, block ) if block
@@ -978,15 +998,15 @@ module Maven
978
998
  exec
979
999
  end
980
1000
 
981
- def dependency( type, *args, &block )
1001
+ def _dependency( type, *args, &block )
982
1002
  do_dependency( false, type, *args, &block )
983
1003
  end
984
1004
 
985
- def dependency!( type, *args, &block )
1005
+ def _dependency!( type, *args, &block )
986
1006
  do_dependency( true, type, *args, &block )
987
1007
  end
988
1008
 
989
- def dependency?( type, *args )
1009
+ def _dependency?( type, *args )
990
1010
  find_dependency( dependency_container,
991
1011
  retrieve_dependency( type, *args ) ) != nil
992
1012
  end
@@ -1122,14 +1142,29 @@ module Maven
1122
1142
  end
1123
1143
  end
1124
1144
 
1125
- def profile( id, &block )
1145
+ def profile( *args, &block )
1126
1146
  profile = Profile.new
1127
- profile.id = id if id
1147
+ args, options = args_and_options( *args )
1148
+ profile.id = args[ 0 ]
1149
+ fill_options( profile, options )
1128
1150
  @current.profiles << profile
1129
1151
  nested_block( :profile, profile, block ) if block
1130
1152
  profile
1131
1153
  end
1132
1154
 
1155
+ def dependency( *args, &block )
1156
+ dep = Dependency.new
1157
+ args, options = args_and_options( *args )
1158
+ dep.group_id = args[ 0 ]
1159
+ dep.artifact_id = args[ 1 ]
1160
+ dep.version = args[ 2 ]
1161
+ dep.type = :jar
1162
+ fill_options( dep, options )
1163
+ nested_block( :dependency, dep, block ) if block
1164
+ dependency_container << dep
1165
+ dep
1166
+ end
1167
+
1133
1168
  def report_set( *reports, &block )
1134
1169
  set = ReportSet.new
1135
1170
  case reports.last
@@ -1160,7 +1195,7 @@ module Maven
1160
1195
  end
1161
1196
 
1162
1197
  def jar!( *args )
1163
- dependency!( :jar, *args )
1198
+ _dependency!( :jar, *args )
1164
1199
  end
1165
1200
 
1166
1201
  def gem( *args )
@@ -1217,7 +1252,7 @@ module Maven
1217
1252
 
1218
1253
  def local( path, options = {} )
1219
1254
  path = ::File.expand_path( path )
1220
- dependency( :jar,
1255
+ _dependency( :jar,
1221
1256
  Maven::Tools::Artifact.new_local( path, :jar, options ) )
1222
1257
  end
1223
1258
 
@@ -1260,11 +1295,11 @@ module Maven
1260
1295
  # ( args.size == 1 && args[0].is_a?( Hash ) )
1261
1296
  case method.to_s[ -1 ]
1262
1297
  when '?'
1263
- dependency?( method.to_s[0..-2].to_sym, *args, &block )
1298
+ _dependency?( method.to_s[0..-2].to_sym, *args, &block )
1264
1299
  when '!'
1265
- dependency!( method.to_s[0..-2].to_sym, *args, &block )
1300
+ _dependency!( method.to_s[0..-2].to_sym, *args, &block )
1266
1301
  else
1267
- dependency( method, *args, &block )
1302
+ _dependency( method, *args, &block )
1268
1303
  end
1269
1304
  # elsif @current.respond_to? method
1270
1305
  # @current.send( method, *args )
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.0.0.rc5'.freeze
23
+ VERSION = '1.0.0.rc6'.freeze
24
24
  end
25
25
  end
@@ -24,10 +24,10 @@ module Maven
24
24
  VERSIONS = {
25
25
  :jar_plugin => "2.4",
26
26
  :clean_plugin => "2.4",
27
- :jruby_plugins => "1.0.2",
27
+ :jruby_plugins => "1.0.3",
28
28
  :bundler_version => "1.6.2",
29
- :jruby_version => "1.7.12",
30
- :tesla_version => "0.1.0"
29
+ :jruby_version => "1.7.13",
30
+ :tesla_version => "0.1.1"
31
31
  }.freeze
32
32
  end
33
33
  end
data/spec/gemfile/pom.xml CHANGED
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -67,6 +67,7 @@
67
67
  <configuration>
68
68
  <gemspec>bouncy-castle-java.gemspec</gemspec>
69
69
  <includeDependencies>true</includeDependencies>
70
+ <useRepositoryLayout>true</useRepositoryLayout>
70
71
  </configuration>
71
72
  </plugin>
72
73
  </plugins>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  <version_from_model>1.5.0</version_from_model>
35
35
  </properties>
36
36
  <repositories>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -89,6 +89,7 @@
89
89
  <directory>mylib</directory>
90
90
  <includes>
91
91
  <include>bouncy-castle-java.jar</include>
92
+ <include>*/**/*.jar</include>
92
93
  </includes>
93
94
  </fileset>
94
95
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -89,6 +89,7 @@
89
89
  <directory>lib</directory>
90
90
  <includes>
91
91
  <include>green.jar</include>
92
+ <include>*/**/*.jar</include>
92
93
  </includes>
93
94
  </fileset>
94
95
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  <tesla.dump.pom>pom.xml</tesla.dump.pom>
35
35
  <tesla.dump.readonly>true</tesla.dump.readonly>
36
36
  </properties>
@@ -78,6 +78,7 @@
78
78
  <configuration>
79
79
  <gemspec>bouncy-castle-java.gemspec</gemspec>
80
80
  <includeDependencies>true</includeDependencies>
81
+ <useRepositoryLayout>true</useRepositoryLayout>
81
82
  </configuration>
82
83
  </plugin>
83
84
  <plugin>
@@ -17,7 +17,7 @@
17
17
  <name>gemfile_with_groups</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
20
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
21
21
  </properties>
22
22
  <dependencies>
23
23
  <dependency>
@@ -17,7 +17,7 @@
17
17
  <name>gemfile_with_groups_and_lockfile</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
20
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
21
21
  </properties>
22
22
  <repositories>
23
23
  <repository>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -17,7 +17,7 @@
17
17
  <name>gemfile_with_path</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
20
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
21
21
  </properties>
22
22
  <dependencies>
23
23
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -85,6 +85,7 @@
85
85
  <directory>mylib</directory>
86
86
  <includes>
87
87
  <include>bouncy-castle-java.jar</include>
88
+ <include>*/**/*.jar</include>
88
89
  </includes>
89
90
  </fileset>
90
91
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -88,6 +88,7 @@
88
88
  <directory>mylib</directory>
89
89
  <includes>
90
90
  <include>green.jar</include>
91
+ <include>*/**/*.jar</include>
91
92
  </includes>
92
93
  </fileset>
93
94
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -8,7 +8,7 @@
8
8
  <name>gemfile_with_test_group</name>
9
9
  <properties>
10
10
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
11
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
11
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
12
12
  </properties>
13
13
  <repositories>
14
14
  <repository>
@@ -17,7 +17,7 @@
17
17
  <name>gemfile_without_gemspec</name>
18
18
  <properties>
19
19
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
20
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
20
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
21
21
  </properties>
22
22
  <dependencies>
23
23
  <dependency>
data/spec/gemspec/pom.xml CHANGED
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -32,7 +32,7 @@
32
32
  </build>
33
33
  <properties>
34
34
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
35
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
35
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
36
36
  </properties>
37
37
  <dependencies>
38
38
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -67,6 +67,7 @@
67
67
  <configuration>
68
68
  <gemspec>bouncy-castle-java.gemspec</gemspec>
69
69
  <includeDependencies>true</includeDependencies>
70
+ <useRepositoryLayout>true</useRepositoryLayout>
70
71
  </configuration>
71
72
  </plugin>
72
73
  </plugins>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  <version_from_model>1.5.0</version_from_model>
35
35
  </properties>
36
36
  <repositories>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -89,6 +89,7 @@
89
89
  <directory>mylib</directory>
90
90
  <includes>
91
91
  <include>bouncy-castle-java.jar</include>
92
+ <include>*/**/*.jar</include>
92
93
  </includes>
93
94
  </fileset>
94
95
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -89,6 +89,7 @@
89
89
  <directory>lib</directory>
90
90
  <includes>
91
91
  <include>green.jar</include>
92
+ <include>*/**/*.jar</include>
92
93
  </includes>
93
94
  </fileset>
94
95
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  <tesla.dump.pom>pom.xml</tesla.dump.pom>
35
35
  <tesla.dump.readonly>true</tesla.dump.readonly>
36
36
  </properties>
@@ -78,6 +78,7 @@
78
78
  <configuration>
79
79
  <gemspec>bouncy-castle-java.gemspec</gemspec>
80
80
  <includeDependencies>true</includeDependencies>
81
+ <useRepositoryLayout>true</useRepositoryLayout>
81
82
  </configuration>
82
83
  </plugin>
83
84
  <plugin>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -85,6 +85,7 @@
85
85
  <directory>mylib</directory>
86
86
  <includes>
87
87
  <include>bouncy-castle-java.jar</include>
88
+ <include>*/**/*.jar</include>
88
89
  </includes>
89
90
  </fileset>
90
91
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -88,6 +88,7 @@
88
88
  <directory>mylib</directory>
89
89
  <includes>
90
90
  <include>green.jar</include>
91
+ <include>*/**/*.jar</include>
91
92
  </includes>
92
93
  </fileset>
93
94
  </filesets>
@@ -30,7 +30,7 @@
30
30
  </scm>
31
31
  <properties>
32
32
  <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
33
- <jruby.plugins.version>1.0.2</jruby.plugins.version>
33
+ <jruby.plugins.version>1.0.3</jruby.plugins.version>
34
34
  </properties>
35
35
  <dependencies>
36
36
  <dependency>
@@ -19,7 +19,7 @@
19
19
  <dependency>
20
20
  <groupId>org.jruby</groupId>
21
21
  <artifactId>jruby</artifactId>
22
- <version>1.7.12</version>
22
+ <version>1.7.13</version>
23
23
  <type>pom</type>
24
24
  <scope>provided</scope>
25
25
  </dependency>
@@ -23,43 +23,51 @@ project do
23
23
  url 'ngo.org'
24
24
  end
25
25
 
26
- license do
27
- name 'AGPL'
28
- url 'gnu.org/agpl'
29
- distribution 'online'
30
- comments 'should be used more often'
26
+ licenses do
27
+ license do
28
+ name 'AGPL'
29
+ url 'gnu.org/agpl'
30
+ distribution 'online'
31
+ comments 'should be used more often'
32
+ end
31
33
  end
32
34
 
33
- developer do
34
- id '1'
35
- name 'first'
36
- email 'first@example.com'
37
- url 'example.com/first'
38
- organization 'orga'
39
- organization_url 'example.org'
40
- roles 'developer', 'architect'
41
- timezone 'IST'
42
- properties :gender => :male
35
+ developers do
36
+ developer do
37
+ id '1'
38
+ name 'first'
39
+ email 'first@example.com'
40
+ url 'example.com/first'
41
+ organization 'orga'
42
+ organization_url 'example.org'
43
+ roles 'developer', 'architect'
44
+ timezone 'IST'
45
+ properties :gender => :male
46
+ end
43
47
  end
44
-
45
- contributor do
46
- name 'first'
47
- email 'first@example.com'
48
- url 'example.com/first'
49
- organization 'orga'
50
- organization_url 'example.org'
51
- roles 'developer', 'architect'
52
- timezone 'IST'
53
- properties :gender => :male
48
+
49
+ contributors do
50
+ contributor do
51
+ name 'first'
52
+ email 'first@example.com'
53
+ url 'example.com/first'
54
+ organization 'orga'
55
+ organization_url 'example.org'
56
+ roles 'developer', 'architect'
57
+ timezone 'IST'
58
+ properties :gender => :male
59
+ end
54
60
  end
55
61
 
56
- mailing_list do
57
- name 'development'
58
- subscribe 'subcribe@example.com'
59
- unsubscribe 'unsubcribe@example.com'
60
- post 'post@example.com'
61
- archive 'example.com/archive'
62
- other_archives 'example.com/archive1', 'example.com/archive2'
62
+ mailing_lists do
63
+ mailing_list do
64
+ name 'development'
65
+ subscribe 'subcribe@example.com'
66
+ unsubscribe 'unsubcribe@example.com'
67
+ post 'post@example.com'
68
+ archive 'example.com/archive'
69
+ other_archives 'example.com/archive1', 'example.com/archive2'
70
+ end
63
71
  end
64
72
 
65
73
  prerequisites do
@@ -136,67 +144,83 @@ project do
136
144
  end
137
145
  properties :key1 => 'value1', 'key2' => :value2
138
146
  dependency_management do
139
- jar( 'com.example:tools:1.2.3' ) do
147
+ dependencies do
148
+ dependency do
149
+ group_id 'com.example'
150
+ artifact_id 'tools'
151
+ version '1.2.3'
152
+ classifier 'super'
153
+ scope 'provided'
154
+ system_path '/home/development/tools.jar'
155
+ optional true
156
+ exclusion 'org.example:some'
157
+ exclusion 'org.example', 'something'
158
+ end
159
+ end
160
+ end
161
+ dependencies do
162
+ dependency do
163
+ group_id 'com.example'
164
+ artifact_id 'tools'
165
+ version '2.3'
166
+ type :war
140
167
  classifier 'super'
141
168
  scope 'provided'
142
- system_path '/home/development/tools.jar'
143
- optional true
169
+ system_path '/home/development/wartools.jar'
170
+ optional false
144
171
  exclusion 'org.example:some'
145
172
  exclusion 'org.example', 'something'
146
173
  end
147
174
  end
148
- war( 'com.example:tools', '2.3' ) do
149
- classifier 'super'
150
- scope 'provided'
151
- system_path '/home/development/wartools.jar'
152
- optional false
153
- exclusion 'org.example:some'
154
- exclusion 'org.example', 'something'
155
- end
156
- repository do
157
- id :first
158
- url 'http://repo.example.com'
159
- name 'First'
160
- layout 'legacy'
161
- releases do
162
- enabled true
163
- update_policy 'daily'
164
- checksum_policy :strict
165
- end
166
- snapshots do
167
- enabled false
168
- update_policy :never
169
- checksum_policy 'none'
170
- end
171
- end
172
- snapshot_repository do
173
- id 'snapshots'
174
- url 'http://snaphots.example.com'
175
- name 'First Snapshots'
176
- layout 'legacy'
177
- releases do
178
- update_policy 'daily'
179
- checksum_policy :strict
175
+ repositories do
176
+ repository do
177
+ id :first
178
+ url 'http://repo.example.com'
179
+ name 'First'
180
+ layout 'legacy'
181
+ releases do
182
+ enabled true
183
+ update_policy 'daily'
184
+ checksum_policy :strict
185
+ end
186
+ snapshots do
187
+ enabled false
188
+ update_policy :never
189
+ checksum_policy 'none'
190
+ end
180
191
  end
181
- snapshots do
182
- update_policy :never
183
- checksum_policy 'none'
192
+
193
+ snapshot_repository do
194
+ id 'snapshots'
195
+ url 'http://snaphots.example.com'
196
+ name 'First Snapshots'
197
+ layout 'legacy'
198
+ releases do
199
+ update_policy 'daily'
200
+ checksum_policy :strict
201
+ end
202
+ snapshots do
203
+ update_policy :never
204
+ checksum_policy 'none'
205
+ end
184
206
  end
185
207
  end
186
- plugin_repository do
187
- id :first
188
- url 'http://pluginrepo.example.com'
189
- name 'First'
190
- layout 'legacy'
191
- releases do
192
- enabled true
193
- update_policy 'daily'
194
- checksum_policy :strict
195
- end
196
- snapshots do
197
- enabled false
198
- update_policy :never
199
- checksum_policy 'none'
208
+ plugin_repositories do
209
+ plugin_repository do
210
+ id :first
211
+ url 'http://pluginrepo.example.com'
212
+ name 'First'
213
+ layout 'legacy'
214
+ releases do
215
+ enabled true
216
+ update_policy 'daily'
217
+ checksum_policy :strict
218
+ end
219
+ snapshots do
220
+ enabled false
221
+ update_policy :never
222
+ checksum_policy 'none'
223
+ end
200
224
  end
201
225
  end
202
226
  build do
@@ -228,7 +252,12 @@ project do
228
252
  end
229
253
 
230
254
  jruby_plugin :gem, '1.0.0' do
231
- gem :bundler, '1.6.2'
255
+ dependency do
256
+ group_id 'rubygems'
257
+ artifact_id 'bundler'
258
+ version '1.6.2'
259
+ type :gem
260
+ end
232
261
  end
233
262
 
234
263
  plugin :antrun do
@@ -249,7 +278,11 @@ project do
249
278
  id 'copy'
250
279
  phase 'package'
251
280
  end
252
- jar 'org.super.duper:executor:1.0.0'
281
+ dependency do
282
+ group_id 'org.super.duper'
283
+ artifact_id 'executor'
284
+ version '1.0.0'
285
+ end
253
286
  end
254
287
 
255
288
  plugin 'org.codehaus.mojo:exec-maven-plugin' do
@@ -16,7 +16,7 @@
16
16
  <version>0.0.0</version>
17
17
  <name>example with execute</name>
18
18
  <properties>
19
- <tesla.version>0.1.0</tesla.version>
19
+ <tesla.version>0.1.1</tesla.version>
20
20
  </properties>
21
21
  <build>
22
22
  <plugins>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc5
4
+ version: 1.0.0.rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Meier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-08 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus