Setting java compiler version to 6 as not doing this causes a default of 1.5