Skip to content

fix: [FEEDS-1966] Read the Java SDK version from its own jar - #109

Merged
itsmeadi merged 1 commit into
mainfrom
fix/sdk-version-classpath
Sep 29, 2026
Merged

itsmeadi merged 1 commit into
mainfrom
fix/sdk-version-classpath

Conversation

@itsmeadi

Copy link
Copy Markdown
Contributor

Summary

stream-sdk-java loaded version.properties from the classpath root. stream-chat-java ships a file with that same name, and the classloader returns whichever jar comes first, so Feeds calls made by this SDK were stamped X-Stream-Client: stream-java-client-1.41.0.

The version still comes from gradle.properties, which release-please already bumps. The build now writes it to io/getstream/stream-sdk-java/version.properties, and the client reads that path.

Checklist

  • The changed code has been covered with unit tests
  • API endpoints are covered with client tests
  • The internal documentation (./docs) has been updated

Made with Cursor

A root version.properties is also shipped by stream-chat-java, so the classloader could stamp X-Stream-Client with the other library's version.

Co-authored-by: Cursor <cursoragent@cursor.com>
@itsmeadi itsmeadi changed the title [CHA-0] Read the Java SDK version from its own jar fix: [FEEDS-1966] Read the Java SDK version from its own jar Sep 29, 2026
@itsmeadi
itsmeadi merged commit fdbd00b into main Sep 29, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants