mappings in Universal <++= (packageBin in Compile, sourceDirectory) map { (_, src) =>
val confFiles = (src / "main" / "resources") ** "*.conf"
confFiles.get.map(file => file -> ("conf/" + file.name))
},
Works but generates a compiler warning <++= has been deprecated. Changing the operator to ++= generates a compiler error
error: No implicit for Append.Values[Seq[(java.io.File, String)], sbt.Def.Initialize[sbt.Task[Seq[(java.io.File, String)]]]] found, so sbt.Def.Initialize[sbt.Task[Seq[(java.io.File, String)]]] cannot be appended to Seq[(java.io.File, String)] mappings in Universal ++= (packageBin in Compile, sourceDirectory) map { (_, src) =>
This operator is very confusing. Try a simpler
:=
which is functionally equivalent: