Ensure JDK6 for publishing

Review by @eed3si9n. Stolen from activator / @henrikengstrom