Added more robust scala build to allow for future clean releases, and publish settings for later integration. 

Added more robust scala build to allow for future clean releases, and publish settings for later integration. 
There is a sbt plugin https://github.com/sbt/junit-interface, but I tried yesterday and I got a NullPointerException in one of the test so I probably didn't configure it properly.