add publish settings and support for sbt 0.12.2