mirror of https://github.com/sbt/sbt.git
Ref #2513, #2435
This commit is contained in:
parent
265cbd78b1
commit
6a0c5c6a3e
|
|
@ -1,22 +1,28 @@
|
||||||
def myResolver = resolvers += Resolver.file("buggy", file("repo"))(
|
def commonSettings: Seq[Def.Setting[_]] =
|
||||||
Patterns(
|
Seq(
|
||||||
ivyPatterns = Seq("[organization]/[module]/[revision]/ivy.xml"),
|
organization := "com.example",
|
||||||
artifactPatterns = Seq("[organization]/[module]/[revision]/[artifact]"),
|
ivyPaths := new IvyPaths( (baseDirectory in ThisBuild).value, Some((baseDirectory in LocalRootProject).value / "ivy-cache")),
|
||||||
isMavenCompatible = false,
|
dependencyCacheDirectory := (baseDirectory in LocalRootProject).value / "dependency",
|
||||||
descriptorOptional = true,
|
resolvers += Resolver.file("buggy", (baseDirectory in LocalRootProject).value / "repo")(
|
||||||
skipConsistencyCheck = true
|
Patterns(
|
||||||
)
|
ivyPatterns = Seq("[organization]/[module]/[revision]/ivy.xml"),
|
||||||
)
|
artifactPatterns = Seq("[organization]/[module]/[revision]/[artifact]"),
|
||||||
|
isMavenCompatible = false,
|
||||||
|
descriptorOptional = true,
|
||||||
|
skipConsistencyCheck = true
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
lazy val a = project settings(
|
lazy val a = project settings(
|
||||||
myResolver,
|
commonSettings,
|
||||||
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
|
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
|
||||||
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime",
|
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime",
|
||||||
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime2"
|
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime2"
|
||||||
)
|
)
|
||||||
|
|
||||||
lazy val b = project dependsOn(a) settings(
|
lazy val b = project dependsOn(a) settings(
|
||||||
myResolver,
|
commonSettings,
|
||||||
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
|
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
|
||||||
libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
|
libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue