mirror of
https://github.com/sbt/sbt.git
synced 2026-09-08 11:13:23 +02:00
Get name and extension from resolution
Fixes https://github.com/coursier/coursier/issues/419
This commit is contained in:
@@ -54,10 +54,9 @@ private[internal] object SbtUpdateReport {
|
||||
|
||||
private val artifact = caching[(Module, Map[String, String], Publication, Artifact), sbt.librarymanagement.Artifact] {
|
||||
case (module, extraProperties, pub, artifact) =>
|
||||
sbt.librarymanagement.Artifact(module.name.value)
|
||||
// FIXME Get these two from publications
|
||||
sbt.librarymanagement.Artifact(pub.name)
|
||||
.withType(pub.`type`.value)
|
||||
.withExtension(MavenAttributes.typeExtension(pub.`type`).value)
|
||||
.withExtension(pub.ext.value)
|
||||
.withClassifier(
|
||||
Some(pub.classifier)
|
||||
.filter(_.nonEmpty)
|
||||
|
||||
Reference in New Issue
Block a user