Bug description
The Spring AOT compilation step fails because the property-based implementation of the ConnectionDetails
interface is private instead of being package-scoped.
- Chroma
- Milvus
- Ollama
- Redis.
Environment Java 21 Spring AI 1.0.0-SNAPSHOT
Steps to reproduce Add the "GraalVM Native Support" to a Spring Boot 3.3.0 application using any of the modules mentioned above. During the compilation process, the AOT steps fails with the following error:
app/build/generated/aotSources/org/springframework/ai/autoconfigure/ollama/OllamaAutoConfiguration__BeanDefinitions.java:31: error: PropertiesOllamaConnectionDetails has private access in OllamaAutoConfiguration
return BeanInstanceSupplier.<OllamaAutoConfiguration.PropertiesOllamaConnectionDetails>forFactoryMethod(OllamaAutoConfiguration.class, "ollamaConnectionDetails", OllamaConnectionProperties.class);
Expected behavior The AOT compilation step succeeds.
Minimal Complete Reproducible example See https://github.com/ThomasVitale/llm-apps-java-spring-ai/tree/main/00-use-cases/text-classification