maven-tools 0.34.4 → 0.34.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,6 +133,9 @@ module Maven
133
133
  end
134
134
 
135
135
  def setup_gem_support( options, spec = nil, config = {} )
136
+ unless model.properties.member?( 'project.build.sourceEncoding' )
137
+ properties( 'project.build.sourceEncoding' => 'utf-8' )
138
+ end
136
139
  if spec.nil?
137
140
  require_path = '.'
138
141
  name = File.basename( File.expand_path( '.' ) )
@@ -265,9 +268,6 @@ module Maven
265
268
 
266
269
  def spec( spec, name = nil, options = {} )
267
270
  name ||= "#{spec.name}-#{spec.version}.gemspec"
268
- unless model.properties.member?( 'project.build.sourceEncoding' )
269
- properties( 'project.build.sourceEncoding' => 'utf-8' )
270
- end
271
271
 
272
272
  @gemfile_options = nil
273
273
 
@@ -942,6 +942,11 @@ module Maven
942
942
  end
943
943
  if args.last.is_a?(Hash)
944
944
  options = args.last
945
+ elsif @group
946
+ options = {}
947
+ args << options
948
+ end
949
+ if options
945
950
 
946
951
  # on ruby-maven side we ignore the require option
947
952
  options.delete( :require )
@@ -953,15 +958,15 @@ module Maven
953
958
  @has_path = true
954
959
  else
955
960
  platform = options.delete( :platform ) || options.delete( 'platform' )
956
- group = options.delete( :group ) || options.delete( 'group' ) || @group || nil
957
- if group
961
+ group = options.delete( :group ) || options.delete( 'group' ) || @group
962
+ if group
958
963
  case group.to_sym
959
964
  when :test
960
965
  options[ :scope ] = :test
961
966
  when :development
962
967
  options[ :scope ] = :provided
963
968
  end
964
- end
969
+ end
965
970
  if platform.nil? || is_jruby_platform( platform )
966
971
  options[ :version ] = '[0,)' if args.size == 2 && options[ :version ].nil? && options[ 'version' ].nil?
967
972
  do_dependency( bang, :gem, *args )
@@ -20,6 +20,6 @@
20
20
  #
21
21
  module Maven
22
22
  module Tools
23
- VERSION = '0.34.4'.freeze
23
+ VERSION = '0.34.5'.freeze
24
24
  end
25
25
  end
@@ -27,10 +27,10 @@ module Maven
27
27
  :war_plugin => "2.2",
28
28
  :jar_plugin => "2.4",
29
29
  :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"
30
+ :jruby_plugins => "1.0.0",
31
+ :bundler_version => "1.6.2",
32
+ :jruby_version => "1.7.12",
33
+ :tesla_version => "0.0.9"
34
34
  }.freeze
35
35
  end
36
36
  end
@@ -40,7 +40,6 @@ XML
40
40
  <dependency>
41
41
  <groupId>org.slf4j</groupId>
42
42
  <artifactId>slf4j-default</artifactId>
43
- <version>[0,)</version>
44
43
  <type>pom</type>
45
44
  </dependency>
46
45
  </dependencies>
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maven-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.4
5
4
  prerelease:
5
+ version: 0.34.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christian Meier
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-10 00:00:00.000000000 Z
12
+ date: 2014-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus