I’m trying to learn the sbt way, so why not the following?

~~~ scala
val dirAndNames = projects.map(p => (resourceDirectory in Compile in p) -> (normalizedName in p)).join
dirAndNames map { dn =>
  for {
    (dir, project) <- dn
    val conf = dir / "reference.conf"
    if conf.exists
  } yield conf -> project
)
~~~