admin管理员组文章数量:1122846
I'm working on a Spring Boot project using Gradle and Kotlin DSL. I want to ensure that the Flyway plugin version I use is compatible with the version specified in the Spring Boot BOM. However, I'm running into issues where the plugin isn't found or managed correctly.
Here's my current build.gradle.kts
setup:
plugins {
kotlin("plugin.spring")
id("org.springframework.boot") version "3.4.0"
id("io.spring.dependency-management") version "1.1.6"
id("org.flywaydb.flyway") version "10.22.0"
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
// other dependencies
}
Problem:
The Flyway plugin version isn't being managed by the Spring Boot BOM, and I have to specify the version explicitly in the plugins
block. This leads to potential compatibility issues, and I want to avoid manual version management. For instance our Renovate Bot always updates to the newest version and the included FlyWay version within Spring Boot 3.4.0 is 10.22.0, however the plugins newest version is 11.0.0 which got included this night.
I also tried leaving the version blank or use a dynamic version but in that case Gradle is not able to resolve any plugin version or uses the newest one.
Question:
- Is there a way to automatically set the Flyway plugin version to the one supported by the Spring Boot BOM?
- How can I ensure that my Gradle plugins are compatible with the Spring Boot version I'm using?
Any guidance or best practices would be greatly appreciated!
本文标签: kotlinHow to Use Spring Boot BOM to Manage Flyway Plugin Version in GradleStack Overflow
版权声明:本文标题:kotlin - How to Use Spring Boot BOM to Manage Flyway Plugin Version in Gradle? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736303212a1931806.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论