简体   繁体   中英

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? 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. Yes, they have to match the Spring Boot version you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM