Gradle 包装器更新和 spring.dependency-管理插件错误

Gradle Wrapper Update and spring.dependency-management Plugin Error

我正在使用 Grails 项目,并将我的 gradle-wrapper 从“gradle-2.9-all”更新为“gradle-3.0-bin”,然后我得到此错误:

An exception occurred applying plugin request [id: 'io.spring.dependency-management', version:` '0.5.2.RELEASE'] Failed to apply plugin [id 'io.spring.dependency-management'] Could not create task of type 'DependencyManagementReportTask'.

我的build.gradle:

buildscript {
    ext {
        grailsVersion = project.grailsVersion
    }
    repositories {
        mavenLocal()
        maven { url "https://repo.grails.org/grails/core" }
    }
    dependencies {
        classpath "org.grails:grails-gradle-plugin:$grailsVersion"
        classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.5.0'
        classpath "org.grails.plugins:hibernate4:5.0.4"
    }
}

plugins {
    id "io.spring.dependency-management" version "0.5.2.RELEASE"
}

version "1.0.0"
group "project"

apply plugin: "spring-boot"
apply plugin: "war"
apply plugin: "asset-pipeline"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"

ext {
    grailsVersion = project.grailsVersion
    gradleWrapperVersion = project.gradleWrapperVersion
}

更新插件 io.spring.dependency-管理到至少 1.0 版本。0.RELEASE https://github.com/spring-gradle-plugins/dependency-management-plugin/tree/v1.0.0.RELEASE

请注意,从 1.0 版开始。6.RELEASE spring 不再支持 Gradle 3.x