您好,官方文档中给出了以下片段:
buildscript {
ext {
springBootVersion = '2.0.0.BUILD-SNAPSHOT'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/libs-snapshot' }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
如果我们使用 spring-boot-gradle-plugin ,我们是否必须遵循这种做法,两个版本的 boot 和 boot-plugin 都是相同的? 如果版本不同会发生什么?
最佳答案
Spring Boot 构建插件(Gradle 和 Maven)始终遵循 Spring Boot 版本。是的,它们必须与您正在使用的 Spring Boot 版本匹配。
关于java - spring-boot-gradle-plugin 是否随 spring-boot 版本一起移动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47411545/