You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2017/02/20 11:35:57 UTC

[7/8] buildr git commit: When custom_pom moved into core, it added a parent pom. Emit the parent pom in tests so transitive operation works as expected.

When custom_pom moved into core, it added a parent pom. Emit the parent pom in tests so transitive operation works as expected.


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/ab1554b0
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/ab1554b0
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/ab1554b0

Branch: refs/heads/master
Commit: ab1554b073fa641aa3d225692ab60f2db945a727
Parents: db9a976
Author: Peter Donald <pe...@realityforge.org>
Authored: Mon Feb 20 21:57:12 2017 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Mon Feb 20 22:34:46 2017 +1100

----------------------------------------------------------------------
 spec/packaging/artifact_spec.rb | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/ab1554b0/spec/packaging/artifact_spec.rb
----------------------------------------------------------------------
diff --git a/spec/packaging/artifact_spec.rb b/spec/packaging/artifact_spec.rb
index d715919..feddfb7 100644
--- a/spec/packaging/artifact_spec.rb
+++ b/spec/packaging/artifact_spec.rb
@@ -1214,6 +1214,14 @@ end
 describe Buildr, '#transitive' do
   before do
     repositories.remote = 'http://buildr.apache.org/repository/noexist'
+    write artifact('org.sonatype.oss:oss-parent:pom:7').pom.to_s, <<-XML
+<project>
+  <artifactId>oss-parent</artifactId>
+  <groupId>org.sonatype.oss</groupId>
+  <version>7</version>
+</project>
+XML
+
     @simple = %w(saxon:saxon:jar:8.4 saxon:saxon-dom:jar:8.4 saxon:saxon-xpath:jar:8.4)
     @simple.map { |spec| artifact(spec).pom }.each { |task| write task.name, task.pom_xml.call }
     @provided = @simple.first