http://docs.spring.io/sts/docs/2.9.0.old/reference/html/gradle/installation.html 在文章里面讲了很详细。
(这里使用spring-framework项目,大家可以根据自己的需要导入。)