-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
31 lines (25 loc) · 994 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
libraryDependencies <+= scalaBinaryVersion {
case x if x startsWith "2.9" => "org.specs2" %% "specs2" % "1.9" % "test"
case "2.10" =>"org.specs2" %% "specs2" % "2.2" % "test"
}
CrossBuilding.scriptedSettings
CrossBuilding.crossSbtVersions := Seq("0.13")
libraryDependencies <+= CrossBuilding.sbtModuleDependencyInit("scripted-plugin")
crossBuildingSettings
CrossBuilding.latestCompatibleVersionMapper ~= { mapper => version => version match {
case "0.13" => "0.13.13"
case x => mapper(x)
}
}
// Replace hard coded reference to defunct typesafe artifactory repository
libraryDependencies ~= { oldDeps =>
oldDeps.map {
case sbtLaunch if sbtLaunch.name == "sbt-launch" =>
sbtLaunch.copy(explicitArtifacts = sbtLaunch.explicitArtifacts.map { artifact =>
artifact.copy(url = artifact.url.map { theUrl =>
url(theUrl.toString.replace("http://typesafe.artifactoryonline.com", "https://dl.bintray.com"))
})
})
case other => other
}
}