Restricted Java source compatibility to 1.7.