private def getTransitiveDependenciesForProjectProdTestSources()

in extractor-legacy-0.13/src/main/scala/org/jetbrains/sbt/extractors/DependenciesExtractor.scala [421:445]


  private def getTransitiveDependenciesForProjectProdTestSources(
    projectRef: ProjectRef,
    projectToConfigurations: Map[ProjectRef, ProjectConfigurations],
    classPathConfiguration: Map[SbtConfiguration, SbtConfiguration],
    settings: Settings[Scope],
    buildDependencies: BuildDependencies
  ): Seq[(ProjectType, Seq[Configuration])] = {
    val dependencyToConfigurations = retrieveTransitiveProjectToConfigsDependencies(
      projectRef,
      classPathConfiguration,
      settings,
      buildDependencies,
      projectToConfigurations
    )
    val keysMappedToProjectType = mapDependenciesToProjectType(dependencyToConfigurations) { case ProjectDependency(project, configuration) =>
      projectToConfigurations.get(project) match {
        case Some(projectConfigurations) if projectConfigurations.test.contains(configuration) =>
          TestType(project)
        case _ =>
          ProductionType(project)
      }
    }

    (ProductionType(projectRef), Seq(Configuration.Test)) +: keysMappedToProjectType
  }