I'm using SBT 1.2.8 after migrating from 0.13.7; the old variants used e.g. <+=
instead of +=
, in e.g. unmanagedClasspath in Compile += baseDirectory map { bd => Attributed.blank(bd / ".." / "config") },
but such operators have been removed.
I've seen a few other related questions, but the types involved seem significantly different enough to be unhelpful to me:
- No implicit for Append.Value[...] found with Def.task to generate files in SBT 0.13?
- sbt: No implicit for Append.Value[Seq[java.io.File], sbt.Def.Initialize[java.io.File]] found,)
The three relevant consecutive lines in my file are:
unmanagedClasspath in Compile += baseDirectory map { bd => Attributed.blank(bd / ".." / "config") },
unmanagedClasspath in Runtime ++= (unmanagedClasspath in Compile),
unmanagedClasspath in Test ++= (unmanagedClasspath in Compile),
This generates the following errors:
build.sbt:70: error: No implicit for Append.Value[sbt.Keys.Classpath, sbt.Def.Initialize[sbt.Task[sbt.internal.util.Attributed[java.io.File]]]] found,
so sbt.Def.Initialize[sbt.Task[sbt.internal.util.Attributed[java.io.File]]] cannot be appended to sbt.Keys.Classpath
unmanagedClasspath in Compile += baseDirectory map { bd => Attributed.blank(bd / ".." / "config") },
^
build.sbt:71: error: No implicit for Append.Values[sbt.Keys.Classpath, sbt.TaskKey[sbt.Keys.Classpath]] found,
so sbt.TaskKey[sbt.Keys.Classpath] cannot be appended to sbt.Keys.Classpath
unmanagedClasspath in Runtime ++= (unmanagedClasspath in Compile),
^
build.sbt:72: error: No implicit for Append.Values[sbt.Keys.Classpath, sbt.TaskKey[sbt.Keys.Classpath]] found,
so sbt.TaskKey[sbt.Keys.Classpath] cannot be appended to sbt.Keys.Classpath
unmanagedClasspath in Test ++= (unmanagedClasspath in Compile),
If that isn't enough information, here's the full build.sbt, and will be happy to inline relevant bits later.