Hello I encountered a build failure when using SpringAI library with Gradle. When I tried to find the cause, I found that 1.0.0-SNAPSHOT was in a state where it could no longer be referenced.

I created a pull request to reflect in the documentation the description of using M5, which was successfully built in my environment.

https://github.com/spring-projects/spring-ai/pull/2053

Can you please confirm the changes? Or if I am wrong that 1.0.0-SNAPSHOT is no longer referenceable, can you please make it referenceable again?

Thank you in advance for your confirmation.

Comment From: ThomasVitale

Which maven repository are you using?

The milestone releases are available from:

repositories {
    maven { url 'https://repo.spring.io/milestone' }
}

The snapshot releases are available from:

repositories {
    maven { url 'https://repo.spring.io/snapshot' }
}

Comment From: pawn-4-git

@ThomasVitale

Upon rechecking, it was an error to say that it was not referenced. Did the recent modification to the method (withModel) that specifies the model of the AI to call apply? (I was getting an error that withModel(String) did not exist when “1.0.0-SNAPSHOP” was specified).

I will close the pull request and Issue once I review the code I implemented.

Thank you for your patience.

Comment From: ThomasVitale

No problem! The methods that were marked as deprecated in previous milestone releases (including withModel()) have been removed yesterday from the snapshot branch, so that's probably the error you saw: https://github.com/spring-projects/spring-ai/commit/3c539a37a38e009e11e2a8870a1708787831069b

Now, all the builders for Chat Models and Vector Stores follow the naming convention without the with prefix. So withModel() became model().