Adapt java source level to jdk version