Commit 26d01e8
authored
chore: include AISdkInfo in extra-files to keep version synced (#191)
## Summary
Adds `AISdkInfo.java` to Release Please `extra-files` so
`AISdkInfo.VERSION` stays in sync with `gradle.properties` on each
release PR. Follows the same pattern as the core Java server SDK and
.NET AI SDK.
The SDK-info event test now references the `AISdkInfo` constants
directly so future version bumps can't leave the expectation stale. No
runtime behavior change.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Release automation and test expectations only; no production logic
changes.
>
> **Overview**
> **Release Please** for `lib/sdk/server-ai` now bumps `AISdkInfo.java`
alongside `gradle.properties`, matching the core server SDK’s
`Version.java` pattern so `AISdkInfo.VERSION` stays aligned on release
PRs.
>
> `constructorEmitsSdkInfoEvent` in `LDAIClientImplTest` asserts against
`AISdkInfo.NAME`, `VERSION`, and `LANGUAGE` instead of hardcoded
literals, so version bumps won’t leave the test out of date. **No
runtime behavior change.**
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
07ff4bd. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 3ff90a5 commit 26d01e8
2 files changed
Lines changed: 6 additions & 4 deletions
File tree
- lib/sdk/server-ai/src/test/java/com/launchdarkly/sdk/server/ai
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments