Only assemble on Java 7 and 8.