Add check for java version so we don't accidentally publish with JDK7 again.
Merge pull request #9 from sbt/wip/detect-java-versin

Ensure JDK6 for publishing