You can now replace the spring dependencies plugin with the native gradle platform bom support.

dependencies {
    implementation(platform("org.springframework.boot:spring-boot-dependencies:${Versions.springBoot}"))
}

To override a version though is a little less clean.

configurations {
  all {
    resolutionStrategy.eachDependency {
      if (this.requested.group == "redis.clients" && this.requested.name == "jedis") {
        this.useVersion(Versions.redis)
        this.because("issues with spring boot and library jedis versoin with >3")
      }
    }
  }
}

References: