making deployment happen only after jdk7