Java 未能应用插件[class';io.spring.gradle.dependencymanagement.DependencyManagementPlugin';]?
我正在处理一个项目,我试图运行gradle包装器,但构建失败,我得到了以下错误:Java 未能应用插件[class';io.spring.gradle.dependencymanagement.DependencyManagementPlugin';]?,java,spring,gradle,plugins,dependencies,Java,Spring,Gradle,Plugins,Dependencies,我正在处理一个项目,我试图运行gradle包装器,但构建失败,我得到了以下错误: :gulpConstantDev FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task :gulpConstantDev. gulp not installed in node_modules, please first run gradle installGulp What
:gulpConstantDev FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task :gulpConstantDev.
gulp not installed in node_modules, please first run gradle installGulp
What went wrong:
A problem occurred evaluating root project 'gateway'.
Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
Could not create task of type 'DependencyManagementReportTask'.
然后我运行了grade installGulp
,但构建再次失败,我得到了以下错误:
:gulpConstantDev FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task :gulpConstantDev.
gulp not installed in node_modules, please first run gradle installGulp
What went wrong:
A problem occurred evaluating root project 'gateway'.
Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
Could not create task of type 'DependencyManagementReportTask'.
我是一个新手程序员,对堆栈溢出还比较陌生。提前感谢您的帮助 我觉得有点晚了。今晚我也面临同样的问题。我通过添加一个依赖项“io.spring.gradle:依赖项管理插件”解决了这个问题。 例如,我有:
ext {
spring_version = "4.2.5.RELEASE"
springboot_version = "1.3.3.RELEASE"
spring_dependency_management_version = "0.6.1.RELEASE"
}
及
我希望这能有所帮助。你的gradle版本是什么?似乎是这样的问题:不太离题:我在工作中的一个项目中遇到了OP的错误,而我对gradle几乎没有经验@诺维的解决方案真的解决了。结果我发现我可能已经将IntelliJ升级到了最新版本,该版本本机支持Gradle 3.0+,尽管我的工作项目配置为Gradle 2.7。所以,注意你的回购协议版本。