Filter out info properties

Should be done by the extraDependencyAttributes method of Module in SBT, but it looks like it's buggy here (it doesn't take the "e:" prefix into account)
This commit is contained in:
Alexandre Archambault 2015-12-30 01:34:40 +01:00
parent 790104f06a
commit f9a2ca5329
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package coursier
import coursier.ivy.IvyRepository
import sbt.mavenint.SbtPomExtraProperties
import sbt.{ Resolver, CrossVersion, ModuleID }
object FromSbt {
@ -31,6 +32,8 @@ object FromSbt {
def attributes(attr: Map[String, String]): Map[String, String] =
attr.map { case (k, v) =>
k.stripPrefix("e:") -> v
}.filter { case (k, _) =>
!k.startsWith(SbtPomExtraProperties.POM_INFO_KEY_PREFIX)
}
def dependencies(