Information:java: javacTask: 源发行版 8 需要目标发行版 1.8
diamond types are not supported language level 5
按照如图设置即可解决问题