maven-tools 0.34.4 → 0.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/maven/tools/dsl.rb +11 -6
- data/lib/maven/tools/version.rb +1 -1
- data/lib/maven/tools/versions.rb +4 -4
- data/rspec/maven/tools/gem_project_spec.rb +0 -1
- metadata +2 -2
data/lib/maven/tools/dsl.rb
CHANGED
@@ -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
|
957
|
-
|
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
|
-
|
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 )
|
data/lib/maven/tools/version.rb
CHANGED
data/lib/maven/tools/versions.rb
CHANGED
@@ -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
|
31
|
-
:bundler_version => "1.
|
32
|
-
:jruby_version => "1.7.
|
33
|
-
:tesla_version => "0.0.
|
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
|
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-
|
12
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|