Ok. This explains why I was not able to use the `target`from sbt Keys like this: 
```scala
mapping in Universal ++= directory(target / "scala-2.10" / "api")
```
The above snippet does not compile due to bad type java.io.File. Using `target`... requires a kind of task scope.

I'll add it to the doc !