in extractor/src/main/scala/org/jetbrains/sbt/extractors/DependenciesExtractor.scala [370:392]
private def getTransitiveDependenciesForProjectProdTestSources(
projectRef: ProjectRef,
projectToConfigurations: Map[ProjectRef, ProjectConfigurations],
classPathConfiguration: Map[SbtConfiguration, SbtConfiguration],
settings: SbtSettings,
buildDependencies: BuildDependencies
): Map[Configuration, Seq[ProjectType]] = {
val dependencyToConfigurations = retrieveTransitiveProjectToConfigsDependencies(
projectRef,
classPathConfiguration,
settings,
buildDependencies,
projectToConfigurations
)
mapDependenciesToProjectType(dependencyToConfigurations) { case ProjectDependency(project, configuration) =>
projectToConfigurations.get(project) match {
case Some(projectConfigurations) if projectConfigurations.test.contains(configuration) =>
TestType(project)
case _ =>
ProductionType(project)
}
}
}