从pom.xml文件通过gradle init --type pom转换为build.gradle后执行gradle idea报错
build file 'D:\studentSpace\jinxiaocun\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'jinxiaocun'.
> Could not find method providedCompile() for arguments [{group=org.springframework.boot, name=spring-boot-starter-tomcat, version=1.5.9.RELEASE}] on root project ''.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
通过
https://blog.csdn.net/m0_38039437/article/details/104702838
页面指导下
加入
apply plugin: 'war'
OK
通过
在将Maven的pom.xml文件转换为Gradle的build.gradle后,执行`gradle idea`遇到了错误,问题在于找不到`providedCompile`方法。通过在build.gradle中添加`apply plugin: 'war'`解决了该问题,成功执行了任务。
1547

被折叠的 条评论
为什么被折叠?



