Apply java plugin