Enforce java-1.7 only on core