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.

kotlin dsl version:

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")
      }
    }
  }
}

groovy version:

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

References: