redis / redis-om-spring

Spring Data Redis extensions for better search, documents models, and more
MIT License
609 stars 94 forks source link

Inclusion of org.springframework.ai:spring-ai-bom:1.0.0-M1 requires explicit inclusion of Spring milestone repo #467

Closed joshrotenberg closed 5 months ago

joshrotenberg commented 5 months ago

Starting with a fresh basic project from https://start.spring.io/ using Gradle (Kotlin DSL):

// ...
  repositories {
          mavenCentral()
  }

  dependencies {
          implementation("org.springframework.boot:spring-boot-starter")
          implementation("org.jetbrains.kotlin:kotlin-reflect")
          implementation("com.redis.om:redis-om-spring:0.9.1")
          annotationProcessor("com.redis.om:redis-om-spring:0.9.1")
// ...

Builds successfully, but with 0.9.2 (and no other changes) I get:

Execution failed for task ':compileKotlin'.
> Could not resolve all artifacts for configuration ':detachedConfiguration82'.
   > Could not find org.springframework.ai:spring-ai-bom:1.0.0-M1.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/org/springframework/ai/spring-ai-bom/1.0.0-M1/spring-ai-bom-1.0.0-M1.pom
     Required by:
         project :

Updating my build.gradle.kt with the milestone repo solves the issue.

// ...
repositories {
    mavenCentral()
    maven("https://repo.spring.io/milestone" )
}

dependencies {
          implementation("org.springframework.boot:spring-boot-starter")
          implementation("org.jetbrains.kotlin:kotlin-reflect")
          implementation("com.redis.om:redis-om-spring:0.9.2")
          annotationProcessor("com.redis.om:redis-om-spring:0.9.2")
// ...