Call spring boot gradle plugin from maven bom

Hi,

I have a maven bom. This bom is used in build.gradle. I want to add a spring boot version to this bom.
How can I do it?
build.gradle uses
buildscript {

dependencies {
classpath(“org.springframework.boot:spring-boot-gradle-plugin:2.1.10”)
}

}
Can I use a gradle plugin from bom or smth like that way?

Hi @andrey107,

This is not supported by Gradle out-of-the-box. If you absolutely need that feature, you can use the io.spring.dependency-management plugin.

See: https://docs.spring.io/dependency-management-plugin/docs/current/reference/html/#dependency-management-configuration-bom-import-override

1 Like