Skip to content

chore(snippets): bump java-server-sdk OpenFeature provider to 2.0.0 - #728

Merged
kinyoklion merged 1 commit into
mainfrom
devin/1793957936-java-openfeature-provider-2
Nov 9, 2026
Merged

kinyoklion merged 1 commit into
mainfrom
devin/1793957936-java-openfeature-provider-2

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

The OpenFeature Java provider shipped 2.0.0 on Nov 5 (#66, start-wait change). The docs install snippets still pin 1.2.1, and the validator resolves the latest 1.x.

  • launchdarkly-openfeature-serverprovider: 1.2.1 → 2.0.0 in openfeature/install-the-provider-xml and -gradle
  • dev.openfeature:sdk range in openfeature/install-dependencies-gradle: [1.7.0,2.0.0) → [1.16.0,2.0.0), which matches the provider's own build.gradle floor (raised in openfeature-java-server#41)
  • sdks.env: LD_JAVA_OPENFEATURE_PROVIDER_VERSION family @1 → @2, so the JVM validator builds against 2.x

The snippet bodies didn't need to change. The Provider(String sdkKey) constructor used by initialize-the-provider is still in 2.0.0. 2.0.0 is published on Maven Central (the GCS mirror still lists 1.2.1 as latest).

Validation: I couldn't run snippets validate --sdk=java-server-sdk locally because no LD keys are available on this machine, so the snippets-validate CI matrix is the check. After release, the ld-docs snippet sync will update the rendered blocks on sdk/openfeature/java.mdx. A companion ld-docs-private PR fixes the prose compatibility statements.

Link to Devin session: https://app.devin.ai/sessions/32cb4af04cfe43929b0e6586ea213773
Open in Devin Desktop: https://app.devin.ai/desktop/session/32cb4af04cfe43929b0e6586ea213773?variant=devin


Note

Overview
Updates Java server SDK OpenFeature install snippets so docs and examples match the 2.0.0 provider release instead of 1.2.1. Gradle and Maven dependency blocks now pin launchdarkly-openfeature-serverprovider at 2.0.0, and the Gradle “SDK + OpenFeature” snippet raises the dev.openfeature:sdk floor from 1.7.0 to 1.16.0 (still capped below 2.0.0).

Validator wiring moves LD_JAVA_OPENFEATURE_PROVIDER_VERSION in sdks.env from the 1.x Maven family to 2.x, so JVM snippet validation builds against the current provider major line.

Reviewed by Cursor Bugbot for commit 298f16d. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@kinyoklion
kinyoklion marked this pull request as ready for review November 9, 2026 16:50
@kinyoklion
kinyoklion requested a review from a team as a code owner November 9, 2026 16:50

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Approved. Cursor Bugbot and Cursor Security Agent completed with no findings that need human review; this is a narrow snippet/version pin update.

Open in Web View Automation 

Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver

@kinyoklion
kinyoklion merged commit 6b3746a into main Nov 9, 2026
49 checks passed
@kinyoklion
kinyoklion deleted the devin/1793957936-java-openfeature-provider-2 branch November 9, 2026 16:55
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.

1 participant