<commit_before>def myResolver = resolvers += Resolver.file("buggy", file("repo"))(
	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(
	myResolver,
	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->runtime2"
)

lazy val b = project dependsOn(a) settings(
	myResolver,
	updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
	libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
)<commit_msg>Fixes #2573 (#2574) Fixes dependency-management /cached-resolution-configurations <commit_after>def commonSettings: Seq[Def.Setting[_]] =
  Seq(
    organization := "com.example",
    ivyPaths := new IvyPaths( (baseDirectory in ThisBuild).value, Some((baseDirectory in LocalRootProject).value / "ivy-cache")),
    dependencyCacheDirectory := (baseDirectory in LocalRootProject).value / "dependency",
    resolvers += Resolver.file("buggy", (baseDirectory in LocalRootProject).value / "repo")(
      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(
  commonSettings,
  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->runtime2"
)

lazy val b = project dependsOn(a) settings(
  commonSettings,
  updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
  libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
)
{'fraction_non_alphanumeric': 0.1507607192254495, 'fraction_numerical': 0.012909174734900875, 'mean_word_length': 4.57840616966581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '422515', 'n_tokens_mistral': 708, 'n_tokens_neox': 677, 'n_words': 152}