无法应用插件 [类 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']?



我正在处理一个项目,我尝试运行 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}")
}

我希望这能有所帮助。

相关内容

  • 没有找到相关文章

最新更新