Build file ‘XXXXXX/build.gradle’ line: 17 A problem occurred evaluating root project ‘xxxx’
Failed to apply plugin [class ‘io.spring.gradle.dependencymanagement.DependencyManagementPlugin’]
Could not create task of type ‘DependencyManagementReportTask’.
在build.gradle文件下添加如下内容:
classpath 'io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE'
完整如下:
buildscript {
ext {
springBootVersion = '1.3.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE'
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}