Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #68 from pvlugter/sbt-1.3.0
Browse files Browse the repository at this point in the history
Merge modules with the same classifier and type
  • Loading branch information
pvlugter authored Sep 10, 2019
2 parents 3169062 + b24706f commit e7dc658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: scala
jdk: oraclejdk8
jdk: openjdk8
script: project/travis.sh

# Build only master and version tags - http://stackoverflow.com/a/31882307/463761
Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/sbtwhitesource/WhiteSource.scala
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ object BaseAction {
case (Some(_), None) => None
case (None, None) => Some(m1)
case (Some((a1, f1)), Some((a2, f2))) =>
if (a1.classifier == Some("native") && a2.classifier == None)
if (a1.classifier == a2.classifier && a1.`type` == a2.`type`)
Some(m1)
else if (a1.classifier == Some("native") && a2.classifier == None)
Some(m2)
else if (a1.classifier == None && a2.classifier == Some("native"))
Some(m1)
Expand Down

0 comments on commit e7dc658

Please sign in to comment.