Humphrey
03/17/2023, 6:22 AMHumphrey
03/17/2023, 7:40 AMVampire
03/17/2023, 8:42 AMplatform(...)
call, or redeclare it in your version catalog and use that, up to you. For libs with versions coming from the BOM, just declare then without version in the catalog, much like when directly doing it in the build script.
For the additional dependencies, just declare them as usual in the version catalog.
Regarding downgrading a version from the BOM, this has nothing to do with version catalogs. Version catalogs are not platforms. They do not directly influence resolution. They are just a catalog of libraries and plugins to choose from.
So to downgrade a version use the usual ways like strict versions: https://docs.gradle.org/current/userguide/dependency_downgrade_and_exclude.htmlCLOVIS
03/17/2023, 9:23 AMHumphrey
03/17/2023, 10:02 AMHumphrey
03/17/2023, 10:14 AM[versions]
kotlin = "1.8.0"
spring-boot-version = "3.0.4"
spring-boot-management = "1.1.0"
[libraries]
spring-boot-bom = { module = "org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES" }
[bundles]
[plugins]
spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot-version" }
spring-dependencymanager = { id = "io.spring.dependency-management", version.ref = "spring-boot-management" }
kotlin-lang = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-spring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
And maybe I don't need dependency-management from SprnigBoot as I'm using this gradle version catalog.Vampire
03/17/2023, 10:27 AMBOM_COORDINATES
in the version catalog.
Either you put the actual coordinates into your version catalog, or you use that constant.
And you should remove the Spring Dependency Management plugin. It is a relict from former times when Gradle had no built-in BOM support. Even its maintainer recommends not to use it anymore.Vampire
03/17/2023, 10:28 AMHumphrey
03/17/2023, 8:58 PM