1.用idea导入项目refresh project时报"The supplied build action failed with an exception."的错
2.面对这个异常信息一脸懵逼,于是改用命令行试试,输入gradle build,异常信息好了一丢丢,至少可以判断是在执行compileJava任务是抛的异常,“Failed to capture snapshot of input files for task ':qf-app-entity:compileJava' property 'classpath' during up-to-date check.”
3.不得不赞一下gradle的日志信息的严谨程度,“what went rong”、“try”、“more”特别人性化,好吧,那我们按提示try,命令行输入gradle build --stacktrace
4.嗯,这就是我想要的异常信息了,初步可以判断跟spring-boot-gradle插件有关,会是什么原因导致呢,项目在别人那里用的好好的,难道是我本机安装的gradle版本跟插件对应的版本不匹配?带着疑问看了一下依赖的spring-boot-gradle插件版本号是"org.springframework.boot:spring-boot-gradle-plugin:1.2.2.RELEASE,百度一下该版本对应的版本号是2.1-.29,而项目设置的gradle是我本机安装的4.2,好了,找到原因了。迅速下载安装了gradle-2.8,改项目的配置,refresh project
5.success