Skip to content

Exclude v10 prereleases from the Java example's gcp version range - #3054

Closed
pose wants to merge 1 commit into
masterfrom
pose/java-range-guard
Closed

pose wants to merge 1 commit into
masterfrom
pose/java-range-guard

Conversation

@pose

@pose pose commented Oct 5, 2026

Copy link
Copy Markdown
Member

gcp-java-gke-hello-world/pom.xml bounds the provider at [9.0,10.0), but Maven's ComparableVersion sorts every 10.0.0-<qualifier> below 10.0.0, so the exclusive upper bound still admits the v10 prerelease series. [9.0.0,10.0.0-alpha) is the bound pulumi/templates already uses for the same dependency.

Verified with mvn dependency:tree against Maven Central: before the change the example resolves com.pulumi:gcp:10.0.0-beta.1, after it resolves com.pulumi:gcp:9.37.0.

Part of pulumi/pulumi-gcp#3941

Maven sorts every 10.0.0-<qualifier> below 10.0.0, so [9.0,10.0) does
not exclude the v10 prerelease series. Use the same bound pulumi/templates
already uses.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pose
pose requested a review from a team October 5, 2026 09:06
@pose pose self-assigned this Oct 5, 2026
@pose pose added this to the 0.140 milestone Oct 5, 2026
@pose pose closed this Oct 5, 2026
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