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 2018/03/22 05:11:13 UTC
[2/2] buildr git commit: Correctly handle scenario when no classifier
is specified
Correctly handle scenario when no classifier is specified
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/478c7cdf
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/478c7cdf
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/478c7cdf
Branch: refs/heads/master
Commit: 478c7cdffd0adf9d7aba153b7db277c666c4c4f5
Parents: cd7c60c
Author: Peter Donald <pe...@realityforge.org>
Authored: Thu Mar 22 16:11:05 2018 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Thu Mar 22 16:11:05 2018 +1100
----------------------------------------------------------------------
lib/buildr/java/custom_pom.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/478c7cdf/lib/buildr/java/custom_pom.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/custom_pom.rb b/lib/buildr/java/custom_pom.rb
index 1be99ac..292d2eb 100644
--- a/lib/buildr/java/custom_pom.rb
+++ b/lib/buildr/java/custom_pom.rb
@@ -245,7 +245,7 @@ module Buildr
xml.groupId dependency[:group]
xml.artifactId dependency[:id]
xml.version dependency[:version]
- xml.classifier dependency[:classifier] unless dependency[:classifier] == 'jar'
+ xml.classifier dependency[:classifier] if dependency[:classifier] && dependency[:classifier].to_s != 'jar'
xml.scope dependency[:scope] unless dependency[:scope] == 'compile'
xml.optional true if dependency[:optional]
xml.exclusions do