Will make the build run only on jdk7 & 8