mvn2 2.6.8 → 2.6.9
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.
- checksums.yaml +4 -4
- data/lib/mvn2/plugin/command.plugin.rb +6 -0
- data/lib/mvn2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 411c7a6221388422d0c13a2f44d9cbb181ff5f2e
|
|
4
|
+
data.tar.gz: 990fbe96279d7bb801bc294a235ede8e479453e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfaffa73c174d647e0edd87396d89ed8eb6d8e04ad10feb0719ab9a74aab4ce181e8fd725e65e26d7751e36400b2be25e726b43772befbae82386679fe487944
|
|
7
|
+
data.tar.gz: c7b6b92532f5e8cc57977bcea89c161de0b07edc9962d3ccfaadaa37f29962cd2a3c14e3a0ddb92682e5e2ce8b2079f2791d9503870307dd0c97147c60d33cf8
|
|
@@ -12,6 +12,8 @@ class CommandPlugin
|
|
|
12
12
|
register :option_with_param, sym: :run_success, names: ['--run-success'], desc: 'run a command after finishing a successful maven build'
|
|
13
13
|
register :option_with_param, sym: :run_failure, names: ['--run-failure'], desc: 'run a command after finishing an unsuccessful maven build'
|
|
14
14
|
register :option_with_param, sym: :run_test, names: ['--run-test'], desc: 'run a specific test class or method(s) (support dependent on maven surefire plugin version)'
|
|
15
|
+
register :option_with_param, sym: :maven_option, names: ['--maven-option'], desc: 'specify a maven option (leave off the -D)', append: true
|
|
16
|
+
register :option_with_param, sym: :maven_profile, names: ['--maven-profile'], desc: 'specify a maven profile'
|
|
15
17
|
register :option, sym: :test_only, names: %w(-o --test-only), desc: 'instead of cleaning and rebuilding before running tests, only run test-compile before running tests'
|
|
16
18
|
end
|
|
17
19
|
|
|
@@ -29,6 +31,10 @@ class CommandPlugin
|
|
|
29
31
|
|
|
30
32
|
register(:command_flag) { |options, flags| flags << ' -Dtest=' << options[:run_test] << ' -DfailIfNoTests=false' unless options[:run_test].nil? }
|
|
31
33
|
|
|
34
|
+
register(:command_flag) { |options, flags| options[:maven_option].each { |opt| flags << " -D#{opt}" } unless options[:maven_option].nil? || options[:maven_option].empty? }
|
|
35
|
+
|
|
36
|
+
register(:command_flag) { |options, flags| flags << ' -P ' << options[:maven_profile] unless options[:maven_profile].nil? }
|
|
37
|
+
|
|
32
38
|
register :goal_override, override_all: true, priority: 100, option: :command_override
|
|
33
39
|
|
|
34
40
|
register(:full_avg_name, order: 20) { |options| options[:package] ? '-package' : '' }
|
data/lib/mvn2/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mvn2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Henderson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|