Add support for custom protocol (#324)

This commit is contained in:
Guillaume Massé 2021-03-08 09:03:28 -05:00 committed by GitHub
parent e474606d3f
commit 8aa5ce4ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import java.net.URL
import java.util.GregorianCalendar
import java.util.concurrent.ConcurrentHashMap
import coursier.cache.CacheUrl
import coursier.{Attributes, Dependency, Module, Project, Resolution}
import coursier.core.{Classifier, Configuration, Extension, Publication, Type}
import coursier.maven.MavenAttributes
@ -69,8 +70,7 @@ private[internal] object SbtUpdateReport {
.orElse(MavenAttributes.typeDefaultClassifierOpt(pub.`type`))
.map(_.value)
)
// .withConfigurations(Vector())
.withUrl(Some(new URL(artifact.url)))
.withUrl(Some(CacheUrl.url(artifact.url)))
.withExtraAttributes(module.attributes ++ extraProperties)
}