[英]Does spring-boot-gradle-plugin moves with the spring-boot version?
Hi in the official documentation is given the following snipet: 您好,官方文档提供了以下摘要:
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'
If we use spring-boot-gradle-plugin do we have to follow this practice both versions boot and boot-plugin to be the same? 如果我们使用spring-boot-gradle-plugin,是否必须遵循这种做法,boot和boot-plugin的版本必须相同? What will happen if the versions are not the same? 如果版本不同,将会发生什么?
The Spring Boot build plugins (both Gradle and Maven) always followed the Spring Boot version. Spring Boot构建插件(Gradle和Maven)始终遵循Spring Boot版本。 Yes, they have to match the Spring Boot version you are using. 是的,它们必须与您使用的Spring Boot版本匹配。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.