mirror of https://github.com/sbt/sbt.git
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:
parent
790104f06a
commit
f9a2ca5329
|
|
@ -1,6 +1,7 @@
|
||||||
package coursier
|
package coursier
|
||||||
|
|
||||||
import coursier.ivy.IvyRepository
|
import coursier.ivy.IvyRepository
|
||||||
|
import sbt.mavenint.SbtPomExtraProperties
|
||||||
import sbt.{ Resolver, CrossVersion, ModuleID }
|
import sbt.{ Resolver, CrossVersion, ModuleID }
|
||||||
|
|
||||||
object FromSbt {
|
object FromSbt {
|
||||||
|
|
@ -31,6 +32,8 @@ object FromSbt {
|
||||||
def attributes(attr: Map[String, String]): Map[String, String] =
|
def attributes(attr: Map[String, String]): Map[String, String] =
|
||||||
attr.map { case (k, v) =>
|
attr.map { case (k, v) =>
|
||||||
k.stripPrefix("e:") -> v
|
k.stripPrefix("e:") -> v
|
||||||
|
}.filter { case (k, _) =>
|
||||||
|
!k.startsWith(SbtPomExtraProperties.POM_INFO_KEY_PREFIX)
|
||||||
}
|
}
|
||||||
|
|
||||||
def dependencies(
|
def dependencies(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue