Skip to content

Conversation

dafriz
Copy link
Contributor

@dafriz dafriz commented Oct 7, 2025

When you try to compile and run tests for Spring AI with Java 25, the build fails with error

Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.9.25:compile (compile) on project spring-ai-client-chat: Compilation failure [ERROR] java.lang.IllegalArgumentException: 25 at com.intellij.util.lang.JavaVersion.parse(JavaVersion.java:305) 

by updating to Kotlin 2.2.20, compiling and running tests on Java 25 complete successfully.

Signed-off-by: David Frizelle <david.frizelle@gmail.com>
@ilayaperumalg ilayaperumalg added this to the 1.1.0.M4 milestone Oct 7, 2025
@ilayaperumalg
Copy link
Member

@dafriz Thanks for the PR! LGTM.

@ilayaperumalg
Copy link
Member

Rebased and merged as 4ad1461

@ilayaperumalg ilayaperumalg self-assigned this Oct 7, 2025
@ilayaperumalg
Copy link
Member

Hi @dafriz, Unfortunately, I need to revert this change as Spring AI 1.x can support kotlin 1.9 only. We can revisit this when we move to Spring AI 2.0 with Spring Boot 4.0 supporting Java 25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants