add java version check to enforce 1.6 publishing