mirror of https://github.com/sbt/sbt.git
Adjust to upstream
This commit is contained in:
parent
95a209b033
commit
27397de8cf
|
|
@ -171,11 +171,9 @@ final class IvySbt(val configuration: IvyConfiguration, fileToStore: File => Cac
|
|||
|
||||
val configs =
|
||||
moduleSettings match {
|
||||
case ic: InlineConfiguration => ic.configurations
|
||||
case ic: InlineConfigurationWithExcludes => ic.configurations
|
||||
case ec: EmptyConfiguration => Nil
|
||||
case pc: PomConfiguration => Configurations.default ++ Configurations.defaultInternal
|
||||
case ifc: IvyFileConfiguration => Configurations.default ++ Configurations.defaultInternal
|
||||
case ic: InlineConfiguration => ic.configurations
|
||||
case pc: PomConfiguration => Configurations.default ++ Configurations.defaultInternal
|
||||
case ifc: IvyFileConfiguration => Configurations.default ++ Configurations.defaultInternal
|
||||
}
|
||||
moduleSettings.ivyScala match {
|
||||
case Some(is) =>
|
||||
|
|
|
|||
|
|
@ -12,10 +12,12 @@ class ScalaOverrideTest extends UnitSpec {
|
|||
val OtherOrgID = "other.org"
|
||||
|
||||
def check(org0: String, version0: String)(org1: String, name1: String, version1: String) = {
|
||||
val osm = new OverrideScalaMediator(org0, version0)
|
||||
val scalaConfigs = Configurations.default.toVector filter { Configurations.underScalaVersion } map { _.name }
|
||||
val osm = new OverrideScalaMediator(org0, version0, scalaConfigs)
|
||||
|
||||
val mrid = ModuleRevisionId.newInstance(org1, name1, version1)
|
||||
val dd = new DefaultDependencyDescriptor(mrid, false)
|
||||
dd.addDependencyConfiguration("compile", "compile")
|
||||
|
||||
val res = osm.mediate(dd)
|
||||
res.getDependencyRevisionId shouldBe ModuleRevisionId.newInstance(org0, name1, version0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue