maven-tools 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/maven/tools/dsl/gem_support.rb +1 -1
- data/lib/maven/tools/dsl/jarfile_lock.rb +1 -1
- data/lib/maven/tools/dsl/jars_lock.rb +1 -1
- data/lib/maven/tools/dsl.rb +4 -4
- data/lib/maven/tools/gemfile_lock.rb +1 -1
- data/lib/maven/tools/jarfile.rb +4 -4
- data/lib/maven/tools/pom.rb +1 -1
- data/lib/maven/tools/version.rb +1 -1
- data/lib/maven/tools/versions.rb +2 -2
- data/spec/artifact_spec.rb +43 -43
- data/spec/coordinate_spec.rb +55 -55
- data/spec/dsl/gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/gemspec_spec.rb +4 -4
- data/spec/dsl/jarfile_lock_spec.rb +44 -44
- data/spec/dsl/profile_gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/no_gems.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/snapshot.xml +2 -2
- data/spec/dsl/profile_gemspec_spec/unknown_license.xml +2 -2
- data/spec/dsl/profile_gemspec_spec.rb +7 -7
- data/spec/dsl/project_gemspec_spec/extended.xml +2 -2
- data/spec/dsl/project_gemspec_spec/jars_and_poms.xml +2 -2
- data/spec/dsl/project_gemspec_spec/jars_and_poms_include_jars.xml +2 -2
- data/spec/dsl/project_gemspec_spec/maven-tools.xml +2 -2
- data/spec/dsl/project_gemspec_spec/no_gems.xml +2 -2
- data/spec/dsl/project_gemspec_spec/profile.xml +2 -2
- data/spec/dsl/project_gemspec_spec/snapshot.xml +2 -2
- data/spec/dsl/project_gemspec_spec/unknown_license.xml +2 -2
- data/spec/dsl/project_gemspec_spec.rb +9 -9
- data/spec/gemfile/pom.xml +2 -2
- data/spec/gemfile_include_jars/pom.xml +2 -2
- data/spec/gemfile_with_access_to_model/pom.xml +2 -2
- data/spec/gemfile_with_custom_source/pom.xml +2 -2
- data/spec/gemfile_with_custom_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemfile_with_extras/pom.xml +2 -2
- data/spec/gemfile_with_groups/pom.xml +2 -2
- data/spec/gemfile_with_groups_and_lockfile/pom.xml +2 -2
- data/spec/gemfile_with_jars_lock/pom.xml +2 -2
- data/spec/gemfile_with_lock/pom.xml +2 -2
- data/spec/gemfile_with_path/pom.xml +2 -2
- data/spec/gemfile_with_platforms/pom.xml +2 -2
- data/spec/gemfile_with_source/pom.xml +2 -2
- data/spec/gemfile_with_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemfile_with_source_and_no_jar/pom.xml +2 -2
- data/spec/gemfile_with_test_group/pom.xml +2 -2
- data/spec/gemfile_with_two_sources/pom.xml +2 -2
- data/spec/gemfile_without_gemspec/pom.xml +2 -2
- data/spec/gemspec/pom.xml +2 -2
- data/spec/gemspec_dependencies_spec.rb +4 -4
- data/spec/gemspec_in_profile/pom.xml +2 -2
- data/spec/gemspec_include_jars/pom.xml +2 -2
- data/spec/gemspec_no_rubygems_repo/pom.xml +2 -2
- data/spec/gemspec_prerelease/pom.xml +2 -2
- data/spec/gemspec_prerelease_snapshot/pom.xml +2 -2
- data/spec/gemspec_with_access_to_model/pom.xml +2 -2
- data/spec/gemspec_with_custom_source/pom.xml +2 -2
- data/spec/gemspec_with_custom_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemspec_with_extras/pom.xml +2 -2
- data/spec/gemspec_with_jar_dependencies/pom.xml +2 -2
- data/spec/gemspec_with_jars_lock/pom.xml +2 -2
- data/spec/gemspec_with_prereleased_dependency/pom.xml +2 -2
- data/spec/gemspec_with_prereleased_dependency_and_no_repo/pom.xml +2 -2
- data/spec/gemspec_with_source/pom.xml +2 -2
- data/spec/gemspec_with_source_and_custom_jarname/pom.xml +2 -2
- data/spec/gemspec_with_source_and_no_jar/pom.xml +2 -2
- data/spec/jarfile_spec.rb +20 -20
- data/spec/mavenfile/Mavenfile +1 -1
- data/spec/pom.xml +1 -1
- data/spec/pom_maven_alternative_style/pom.rb +1 -1
- data/spec/pom_maven_hash_style/pom.rb +1 -1
- data/spec/pom_maven_style/pom.rb +1 -1
- data/spec/pom_spec.rb +2 -2
- metadata +2 -2
@@ -8,8 +8,8 @@
|
|
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>3.0.0
|
12
|
-
<mavengem.wagon.version>2.0.0
|
11
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
12
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
13
13
|
</properties>
|
14
14
|
<repositories>
|
15
15
|
<repository>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_with_two_sources</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<repositories>
|
24
24
|
<repository>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
<name>gemfile_without_gemspec</name>
|
18
18
|
<properties>
|
19
19
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
20
|
-
<jruby.plugins.version>3.0.0
|
21
|
-
<mavengem.wagon.version>2.0.0
|
20
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
21
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
22
22
|
</properties>
|
23
23
|
<dependencies>
|
24
24
|
<dependency>
|
data/spec/gemspec/pom.xml
CHANGED
@@ -47,8 +47,8 @@
|
|
47
47
|
</scm>
|
48
48
|
<properties>
|
49
49
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
50
|
-
<jruby.plugins.version>3.0.0
|
51
|
-
<mavengem.wagon.version>2.0.0
|
50
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
51
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
52
52
|
</properties>
|
53
53
|
<dependencies>
|
54
54
|
<dependency>
|
@@ -25,9 +25,9 @@ describe Maven::Tools::GemspecDependencies do
|
|
25
25
|
subject { Maven::Tools::GemspecDependencies.new( spec ) }
|
26
26
|
|
27
27
|
it 'should setup artifact' do
|
28
|
-
subject.runtime.must_equal ["rubygems:thor:[0.14.6,2.0)", "rubygems:maven-tools:[0.32.3,0.32.99999]"]
|
29
|
-
subject.development.must_equal ["rubygems:minitest:[5.3,5.99999]", "rubygems:rake:[10.0,10.99999]"]
|
30
|
-
subject.java_runtime.must_equal [ ["sdas", "das", "jar", "tes", "123"],
|
28
|
+
_(subject.runtime).must_equal ["rubygems:thor:[0.14.6,2.0)", "rubygems:maven-tools:[0.32.3,0.32.99999]"]
|
29
|
+
_(subject.development).must_equal ["rubygems:minitest:[5.3,5.99999]", "rubygems:rake:[10.0,10.99999]"]
|
30
|
+
_(subject.java_runtime).must_equal [ ["sdas", "das", "jar", "tes", "123"],
|
31
31
|
["sdas", "das", "jar", "123"],
|
32
32
|
["sdas.asd", "das", "jar", "123", ["fds:fre"]],
|
33
33
|
["sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
|
@@ -37,7 +37,7 @@ describe Maven::Tools::GemspecDependencies do
|
|
37
37
|
["de.sdas.asd", "das", "jar", "123", ["fds:fre"]],
|
38
38
|
["de.sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
|
39
39
|
["de.sdas.asd", "das", "jar", "blub", "123", ["fds:fre","ferf:de"]] ]
|
40
|
-
subject.java_dependencies.must_equal [ [:compile, "sdas", "das", "jar", "tes", "123"],
|
40
|
+
_(subject.java_dependencies).must_equal [ [:compile, "sdas", "das", "jar", "tes", "123"],
|
41
41
|
[:compile, "sdas", "das", "jar", "123"],
|
42
42
|
[:compile, "sdas.asd", "das", "jar", "123", ["fds:fre"]],
|
43
43
|
[:compile, "sdas.asd", "das", "jar", "bla", "123", ["fds:fre", "ferf:de"]],
|
@@ -41,8 +41,8 @@
|
|
41
41
|
</build>
|
42
42
|
<properties>
|
43
43
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
44
|
-
<jruby.plugins.version>3.0.0
|
45
|
-
<mavengem.wagon.version>2.0.0
|
44
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
45
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
46
46
|
</properties>
|
47
47
|
<dependencies>
|
48
48
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
<version_from_model>1.5.0</version_from_model>
|
36
36
|
</properties>
|
37
37
|
<repositories>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
<tesla.dump.pom>pom.xml</tesla.dump.pom>
|
36
36
|
<tesla.dump.readonly>true</tesla.dump.readonly>
|
37
37
|
</properties>
|
@@ -47,8 +47,8 @@
|
|
47
47
|
</scm>
|
48
48
|
<properties>
|
49
49
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
50
|
-
<jruby.plugins.version>3.0.0
|
51
|
-
<mavengem.wagon.version>2.0.0
|
50
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
51
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
52
52
|
</properties>
|
53
53
|
<dependencies>
|
54
54
|
<dependency>
|
@@ -47,8 +47,8 @@
|
|
47
47
|
</scm>
|
48
48
|
<properties>
|
49
49
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
50
|
-
<jruby.plugins.version>3.0.0
|
51
|
-
<mavengem.wagon.version>2.0.0
|
50
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
51
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
52
52
|
</properties>
|
53
53
|
<dependencies>
|
54
54
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
@@ -30,8 +30,8 @@
|
|
30
30
|
</scm>
|
31
31
|
<properties>
|
32
32
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
33
|
-
<jruby.plugins.version>3.0.0
|
34
|
-
<mavengem.wagon.version>2.0.0
|
33
|
+
<jruby.plugins.version>3.0.0</jruby.plugins.version>
|
34
|
+
<mavengem.wagon.version>2.0.0</mavengem.wagon.version>
|
35
35
|
</properties>
|
36
36
|
<dependencies>
|
37
37
|
<dependency>
|
data/spec/jarfile_spec.rb
CHANGED
@@ -38,7 +38,7 @@ describe Maven::Tools::Jarfile do
|
|
38
38
|
|
39
39
|
it 'generates lockfile' do
|
40
40
|
subject.generate_lockfile(%w( a b c d e f ruby.bundler:bla))
|
41
|
-
File.read(jfile_lock).must_equal <<-EOF
|
41
|
+
_(File.read(jfile_lock)).must_equal <<-EOF
|
42
42
|
a
|
43
43
|
b
|
44
44
|
c
|
@@ -55,10 +55,10 @@ a:b:pom:3
|
|
55
55
|
a:c:jar:1
|
56
56
|
EOF
|
57
57
|
end
|
58
|
-
subject.locked.must_equal ["a:b:pom:3", "a:c:jar:1"]
|
59
|
-
subject.locked?("a:b:pom:321").must_equal true
|
60
|
-
subject.locked?("a:b:jar:321").must_equal true
|
61
|
-
subject.locked?("a:d:jar:432").must_equal false
|
58
|
+
_(subject.locked).must_equal ["a:b:pom:3", "a:c:jar:1"]
|
59
|
+
_(subject.locked?("a:b:pom:321")).must_equal true
|
60
|
+
_(subject.locked?("a:b:jar:321")).must_equal true
|
61
|
+
_(subject.locked?("a:d:jar:432")).must_equal false
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'populate repositories' do
|
@@ -70,11 +70,11 @@ source "http://example.org/repo/3"
|
|
70
70
|
EOF
|
71
71
|
end
|
72
72
|
subject.populate_unlocked container
|
73
|
-
container.repositories.size.must_equal 3
|
74
|
-
container.artifacts.size.must_equal 0
|
75
|
-
container.repositories[0].must_equal "first"
|
76
|
-
container.repositories[1].must_equal "second"
|
77
|
-
container.repositories[2].must_equal "http://example.org/repo/3"
|
73
|
+
_(container.repositories.size).must_equal 3
|
74
|
+
_(container.artifacts.size).must_equal 0
|
75
|
+
_(container.repositories[0]).must_equal "first"
|
76
|
+
_(container.repositories[1]).must_equal "second"
|
77
|
+
_(container.repositories[2]).must_equal "http://example.org/repo/3"
|
78
78
|
end
|
79
79
|
|
80
80
|
it 'populate artifacts without locked' do
|
@@ -85,10 +85,10 @@ pom 'x:y', '987'
|
|
85
85
|
EOF
|
86
86
|
end
|
87
87
|
subject.populate_unlocked container
|
88
|
-
container.repositories.size.must_equal 0
|
89
|
-
container.artifacts.size.must_equal 2
|
90
|
-
container.artifacts[0].to_s.must_equal "a:b:jar:123"
|
91
|
-
container.artifacts[1].to_s.must_equal "x:y:pom:987"
|
88
|
+
_(container.repositories.size).must_equal 0
|
89
|
+
_(container.artifacts.size).must_equal 2
|
90
|
+
_(container.artifacts[0].to_s).must_equal "a:b:jar:123"
|
91
|
+
_(container.artifacts[1].to_s).must_equal "x:y:pom:987"
|
92
92
|
end
|
93
93
|
|
94
94
|
it 'populate artifacts with locked' do
|
@@ -105,9 +105,9 @@ EOF
|
|
105
105
|
end
|
106
106
|
|
107
107
|
subject.populate_unlocked container
|
108
|
-
container.repositories.size.must_equal 0
|
109
|
-
container.artifacts.size.must_equal 1
|
110
|
-
container.artifacts[0].to_s.must_equal "x:y:pom:987"
|
108
|
+
_(container.repositories.size).must_equal 0
|
109
|
+
_(container.artifacts.size).must_equal 1
|
110
|
+
_(container.artifacts[0].to_s).must_equal "x:y:pom:987"
|
111
111
|
end
|
112
112
|
|
113
113
|
it 'populate locked artifacts' do
|
@@ -118,8 +118,8 @@ EOF
|
|
118
118
|
end
|
119
119
|
|
120
120
|
subject.populate_locked container
|
121
|
-
container.repositories.size.must_equal 0
|
122
|
-
container.artifacts.size.must_equal 1
|
123
|
-
container.artifacts[0].to_s.must_equal "a:b:jar:432"
|
121
|
+
_(container.repositories.size).must_equal 0
|
122
|
+
_(container.artifacts.size).must_equal 1
|
123
|
+
_(container.artifacts[0].to_s).must_equal "a:b:jar:432"
|
124
124
|
end
|
125
125
|
end
|
data/spec/mavenfile/Mavenfile
CHANGED
@@ -265,7 +265,7 @@ plugin 'org.codehaus.mojo:exec-maven-plugin' do
|
|
265
265
|
end
|
266
266
|
|
267
267
|
plugin_management do
|
268
|
-
jruby_plugin( :gem, '3.0.0
|
268
|
+
jruby_plugin( :gem, '3.0.0', :scope => :compile,
|
269
269
|
:gems => {
|
270
270
|
'thread_safe' => '0.3.3',
|
271
271
|
'jdbc-mysql' => '5.1.30'
|
data/spec/pom.xml
CHANGED
@@ -207,7 +207,7 @@ project 'my name', 'example.com' do
|
|
207
207
|
end
|
208
208
|
|
209
209
|
overrides do
|
210
|
-
jruby_plugin( :gem, '3.0.0
|
210
|
+
jruby_plugin( :gem, '3.0.0', :scope => :compile,
|
211
211
|
:gems => {
|
212
212
|
'thread_safe' => '0.3.3',
|
213
213
|
'jdbc-mysql' => '5.1.30'
|
@@ -227,7 +227,7 @@ project :name => 'my name', :url => 'example.com' do
|
|
227
227
|
end
|
228
228
|
|
229
229
|
plugin_management do
|
230
|
-
jruby_plugin( :gem, '3.0.0
|
230
|
+
jruby_plugin( :gem, '3.0.0', :scope => :compile,
|
231
231
|
:gems => {
|
232
232
|
'thread_safe' => '0.3.3',
|
233
233
|
'jdbc-mysql' => '5.1.30'
|
data/spec/pom_maven_style/pom.rb
CHANGED
data/spec/pom_spec.rb
CHANGED
@@ -9,7 +9,7 @@ describe Maven::Tools::POM do
|
|
9
9
|
it "should convert #{dir}" do
|
10
10
|
pom = Maven::Tools::POM.new( dir )
|
11
11
|
file = File.join( dir, 'pom.xml' )
|
12
|
-
file = File.join( File.dirname( dir ), 'pom.xml' ) unless File.
|
12
|
+
file = File.join( File.dirname( dir ), 'pom.xml' ) unless File.exist? file
|
13
13
|
pom_xml = File.read( file )
|
14
14
|
pom_xml.sub!( /<!--(.|\n)*-->\n/, '' )
|
15
15
|
pom_xml.sub!( /<?.*?>\n/, '' )
|
@@ -18,7 +18,7 @@ describe Maven::Tools::POM do
|
|
18
18
|
pom_xml.gsub!( /tesla-polyglot/, 'polyglot' )
|
19
19
|
pom_xml.gsub!( /${tesla.version}/, Maven::Tools::VERSIONS[ :polyglot_version ] )
|
20
20
|
|
21
|
-
pom.to_s.must_equal pom_xml
|
21
|
+
_(pom.to_s).must_equal pom_xml
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|