chore: mark framework dependencies as provided scope#20
Merged
praveer-rai merged 1 commit intomainfrom Apr 17, 2026
Merged
Conversation
Context propagator modules (grpc, slf4j, opentelemetry) now declare their framework dependencies as provided. Consumers supply their own version at runtime, avoiding version conflicts when blockless pins a different version. Add explicit framework deps to blockless-tests since provided scope deps are not transitive.
jimbao
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context propagator modules now declare their framework dependencies as
providedinstead of
compile. This prevents blockless from forcing a specific grpc/slf4j/otelversion on consumers — they supply their own version at runtime.
Changed
blockless-context-grpc—grpc-contextandgrpc-api→providedblockless-context-slf4j—slf4j-api→providedblockless-context-opentelemetry—opentelemetry-context→providedblockless-tests— added explicit framework deps (sinceprovidedis not transitive)Why
Consumers running grpc 1.70.0 or 1.76.3 were getting version conflicts because
blockless pulled in grpc 1.77.0 transitively. With
provided, blockless compilesagainst 1.77.0 but the consumer's version is what gets used.
Test plan