The plugin id 'spring-boot' is deprecated. Please use 'org.springframework.boot' instead.

apply plugin: 'spring-boot' ---1.4.1.RELEASE及更早版本使用此ID,2.0.0.RELEASE及后续版本不支持

buildscript {
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.1.RELEASE")
        classpath "io.spring.gradle:dependency-management-plugin"
    }
}


apply plugin: 'org.springframework.boot' ---1.4.2.RELEASE及后续版本可以使用此ID

buildscript {
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE")
        classpath "io.spring.gradle:dependency-management-plugin"
    }
}


 

PS:

Gradle plugin:https://plugins.gradle.org/m2/

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐