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/m2/
更多推荐
【Spring】spring-boot-gradle-plugin 版本问题
发布评论