maven-tools 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0e19d1a856b4e631741ad0ce39566eccc749c75
4
- data.tar.gz: 583cc562022e0749ecf88e3c83ac49359becf447
3
+ metadata.gz: bd77fa2d8549271ae147991be591a6dde3ef2592
4
+ data.tar.gz: 20e2799b2ac9f984dfed4c010bdb4870331994a8
5
5
  SHA512:
6
- metadata.gz: f5f29ed74b6375ec904aa5ff99baaba6936f5005bc5b7df8ff067b87747168a2c4094aa0daedce75c41daa4afbd2cb36bba225364ef1fa9a0410b093e62e20c2
7
- data.tar.gz: 608aeec206313fc9c7117703311ea47072e588ad7cca1f7895156e45b50d320a27cfd4e4919ca6fcdba72163ed641347f9d0bbfce3d1eed101ac4fe666fc5f49
6
+ metadata.gz: 1a63eb60ce4792afbd158cd837fd605783e0aca9fb3202c4113944e4b464c62061fd393549daa2a1078112134efafdd6039c0fc757dcd9c54d053fd3ebd6cced
7
+ data.tar.gz: 93d7b66f753f270e473622a122deda761dd7ddbfa6f0c24dd4792171d3ff284fc6bfc101a3089c1304deed99dbd7da10b6cf5dce1c71a5be5dc21d4dcb18d86d
data/Mavenfile CHANGED
@@ -13,27 +13,15 @@ properties( 'jruby.plugins.version' => '1.1.4',
13
13
  'jruby.versions' => ['1.7.12', '${jruby.version}', '9.0.5.0'].join(','),
14
14
  'jruby.modes' => ['1.9', '2.0', '2.2'].join(','),
15
15
  # just lock the versions
16
- 'jruby.version' => '1.7.24',
17
- 'push.skip' => true )
18
-
16
+ 'jruby.version' => '1.7.24' )
19
17
 
20
18
  profile :id => :release do
21
19
  properties 'maven.test.skip' => true, 'invoker.skip' => true, 'push.skip' => false
22
20
 
23
- # distribution_management do
24
- # repository :id => :ossrh, :url => 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
25
- # end
26
-
27
21
  build do
28
22
  default_goal :deploy
29
23
  end
30
24
 
31
- # plugin :gpg, '1.5' do
32
- # execute_goal :sign, :id => 'sign artifacts', :phase => :verify
33
- # end
34
- # plugin :deploy, '2.8.2' do
35
- # execute_goal :deploy, :phase => :deploy, :id => 'deploy gem to maven central'
36
- # end
37
25
  end
38
26
 
39
27
  # vim: syntax=Ruby
@@ -410,11 +410,18 @@ module Maven
410
410
  alias :dependencies :licenses
411
411
  alias :repositories :licenses
412
412
  alias :plugin_repositories :licenses
413
- alias :extensions :licenses
414
413
  alias :resources :licenses
415
414
  alias :testResources :licenses
416
415
  alias :plugins :licenses
417
416
 
417
+ def extensions(*args)
418
+ if @context == :plugin || @context == :report_plugin
419
+ @current.extensions = args[0]
420
+ else
421
+ yield
422
+ end
423
+ end
424
+
418
425
  def build( &block )
419
426
  build = @current.build ||= Build.new
420
427
  nested_block( :build, build, block ) if block
@@ -1217,9 +1224,12 @@ module Maven
1217
1224
  reports = reports[ 0..-2 ]
1218
1225
  id = options.delete( :id ) || options.delete( 'id' )
1219
1226
  set.id = id if id
1220
- inherited = options.delete( :inherited ) ||
1221
- options.delete( 'inherited' )
1222
- set.inherited = inherited if inherited
1227
+ inherited = options.delete( :inherited )
1228
+ inherited = options.delete( 'inherited' ) if inherited.nil?
1229
+ set.inherited = inherited unless inherited.nil?
1230
+ extensions = options.delete( :extensions )
1231
+ extensions = options.delete( 'extensions' ) if extensions.nil?
1232
+ set.extensions = extensions unless extensions.nil?
1223
1233
  end
1224
1234
  set_config( set, options )
1225
1235
  set.reports = reports#.to_java
@@ -1373,8 +1383,12 @@ module Maven
1373
1383
 
1374
1384
  def prepare_config( receiver, options )
1375
1385
  return unless options
1376
- inherited = options.delete( 'inherited' ) || options.delete( :inherited )
1377
- receiver.inherited = inherited if inherited
1386
+ inh = options.delete( 'inherited' )
1387
+ inh = options.delete( :inherited ) if inh.nil?
1388
+ receiver.inherited = inh unless inh.nil?
1389
+ ext = options.delete( 'extensions' )
1390
+ ext = options.delete( :extensions ) if ext.nil?
1391
+ receiver.extensions = ext unless ext.nil?
1378
1392
  end
1379
1393
 
1380
1394
  def set_config( receiver, options )
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '1.1.2'.freeze
23
+ VERSION = '1.1.3'.freeze
24
24
  end
25
25
  end
@@ -222,11 +222,11 @@ test_resource do
222
222
  excludes [ '*~' ]
223
223
  end
224
224
 
225
- plugin :jar, '1.0', :inherited => true do
225
+ plugin :jar, '1.0', 'inherited' => 'false', :extensions => true do
226
226
  configuration :finalName => :testing
227
227
  end
228
228
 
229
- jruby_plugin :gem, '1.0.0' do
229
+ jruby_plugin :gem, '1.0.0', :extensions => false do
230
230
  gem :bundler, '1.7.13'
231
231
  end
232
232
 
@@ -344,7 +344,8 @@
344
344
  <plugin>
345
345
  <artifactId>maven-jar-plugin</artifactId>
346
346
  <version>1.0</version>
347
- <inherited>true</inherited>
347
+ <extensions>true</extensions>
348
+ <inherited>false</inherited>
348
349
  <configuration>
349
350
  <finalName>testing</finalName>
350
351
  </configuration>
@@ -353,6 +354,7 @@
353
354
  <groupId>de.saumya.mojo</groupId>
354
355
  <artifactId>gem-maven-plugin</artifactId>
355
356
  <version>1.0.0</version>
357
+ <extensions>false</extensions>
356
358
  <dependencies>
357
359
  <dependency>
358
360
  <groupId>rubygems</groupId>
@@ -164,11 +164,11 @@ project 'my name', 'example.com' do
164
164
  excludes [ '*~' ]
165
165
  end
166
166
 
167
- plugin :jar, '1.0', :inherited => true do
167
+ plugin :jar, '1.0', :inherited => false, :extensions => true do
168
168
  configuration :finalName => :testing
169
169
  end
170
170
 
171
- jruby_plugin :gem, '1.0.0' do
171
+ jruby_plugin :gem, '1.0.0', 'extensions' => false do
172
172
  gem :bundler, '1.7.13'
173
173
  end
174
174
 
@@ -185,10 +185,11 @@ project :name => 'my name', :url => 'example.com' do
185
185
  :includes => [ '**/*' ],
186
186
  :excludes => [ '*~' ] )
187
187
  plugin( :jar, '1.0',
188
- :inherited => true,
188
+ :inherited => false,
189
+ :extensions => true,
189
190
  :finalName => :testing )
190
191
 
191
- jruby_plugin :gem, '1.0.0' do
192
+ jruby_plugin :gem, '1.0.0', 'extensions' => false do
192
193
  gem :bundler, '1.7.13'
193
194
  end
194
195
 
@@ -249,11 +249,13 @@ project do
249
249
  end
250
250
 
251
251
  plugin :jar, '1.0' do
252
- inherited true
252
+ inherited false
253
+ extensions 'true'
253
254
  configuration :finalName => :testing
254
255
  end
255
256
 
256
257
  jruby_plugin :gem, '1.0.0' do
258
+ extensions false
257
259
  dependency do
258
260
  group_id 'rubygems'
259
261
  artifact_id 'bundler'
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Meier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement