3 ms·
I have never seen them. Do they actually exist? Most of the time, there is := (set something), += (add something) and ++= (add multiple things). I think that's
by airless_bar 11y ago
I have never seen them. Do they actually exist?
Most of the time, there is := (set something), += (add something) and ++= (add multiple things). I think that's pretty straight-forward.
- lmm 11y agoYes, they're very common in build.sbt files. How else would you add library dependencies? I know exactly what they do; the underlying reasoning is very consistent, maybe even elegant. But if you don't know and need to understand/modify a build.sbt file, it's very tricky to find out.
- airless_bar 11y ago> How else would you add library dependencies? Like this? libraryDependencies ++= Seq(...)
- lmm 11y agoOk, so what's the difference between that and libraryDependencies :++= Seq(...) ? Because I've definitely seen that in some build.sbt files.
- airless_bar 11y agoThis doesn't exist: error: value :++= is not a member of sbt.TaskKey[Seq[sbt.ModuleID]]