简体   繁体   English

spring-boot-gradle-plugin是否随spring-boot版本一起移动?

[英]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.

相关问题 @Retryable在Spring-boot-gradle-plugin上不起作用 - @Retryable is not working on Spring-boot-gradle-plugin 尝试使用gradle bootrun进行编译并获取找不到spring-boot-gradle-plugin:1.4.0.BUILD-SNAPSHOT - Trying to compile with gradle bootrun and get cannot find spring-boot-gradle-plugin:1.4.0.BUILD-SNAPSHOT Spring Boot Gradle插件强制Mockito版本 - Spring boot gradle plugin forces Mockito version spring-boot gradle插件将常春藤依赖配置弄乱了吗? - spring-boot gradle plugin messes ivy dependency configuration? 在父 build.gradle 中找不到 ID 为 spring-boot 的插件 - plugin with id spring-boot not found in parent build.gradle 并行启动多个Gradle“spring-boot”插件“bootRun”任务 - Launch multiple Gradle “spring-boot” plugin “bootRun” tasks in parallel 如何在gradle中获得spring-boot依赖版本? - How to get spring-boot dependency version in gradle? 将 lombok 与 gradle 和 spring-boot 结合使用 - Using lombok with gradle and spring-boot Gradle 无法解析 org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto) - Gradle Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto) Spring Boot Gradle插件不起作用 - Spring boot gradle plugin not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM