我正在处理一个项目,我尝试运行 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
然后我跑了
grade 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'.
我是一名新手程序员,我对 Stack Overflow 还很陌生。在此先感谢您的帮助!
最佳答案
我觉得有点晚了。我今晚面临同样的问题。我通过添加一个依赖项“io.spring.gradle:dependency-management-plugin”来解决它。
例如我有:
ext {
spring_version = "4.2.5.RELEASE"
springboot_version = "1.3.3.RELEASE"
spring_dependency_management_version = "0.6.1.RELEASE"
}
和 dependencies {
classpath("io.spring.gradle:dependency-management-plugin:${spring_dependency_management_version}")
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springboot_version}")
}
我希望这会有所帮助。
关于java - 未能应用插件 [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45038623/