An example of using a Java class for an SBT build task.
We take advantage of the following fact:
The project directory is another project inside your project which knows how to build your project. The project inside project can (in theory) do anything any other project can do. Your build definition is an sbt project.
(See http://www.scala-sbt.org/release/docs/Getting-Started/Full-Def.html)