mirror of https://github.com/sbt/sbt.git
always use 'jar' as packaging type if there is an artifact with a 'jar' type
This commit is contained in:
parent
260ee59d4a
commit
9e045edab8
|
|
@ -77,8 +77,9 @@ class MakePom
|
||||||
case Array() => "pom"
|
case Array() => "pom"
|
||||||
case Array(x) => x.getType
|
case Array(x) => x.getType
|
||||||
case xs =>
|
case xs =>
|
||||||
val notpom = xs.filter(_.getType != "pom")
|
val types = xs.map(_.getType)
|
||||||
if(notpom.isEmpty) "pom" else notpom(0).getType
|
val notpom = types.toList - "pom"
|
||||||
|
if(notpom.isEmpty) "pom" else if(notpom contains "jar") "jar" else notpom.head
|
||||||
}
|
}
|
||||||
|
|
||||||
def makeDependencies(module: ModuleDescriptor, configurations: Option[Iterable[Configuration]]): NodeSeq =
|
def makeDependencies(module: ModuleDescriptor, configurations: Option[Iterable[Configuration]]): NodeSeq =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue