fix(auto-install): Use Sentry BOM version for installs#265
Draft
adinauer wants to merge 3 commits into
Draft
Conversation
Detect managed Sentry SDK versions from dependency management before falling back to the plugin-bundled SDK version. This keeps auto-installed Sentry modules aligned with imported sentry-bom or sentry-opentelemetry-bom versions. Co-Authored-By: Claude <noreply@anthropic.com>
Document that auto-installed Sentry dependencies now use imported BOM versions. Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Jul 1, 2026
lbloder
reviewed
Jul 7, 2026
| @@ -26,6 +26,13 @@ public SentryInstaller(final @NotNull Logger logger) { | |||
| public @Nullable String install( | |||
Collaborator
There was a problem hiding this comment.
Is this constructor kept around only for the tests? we might as well get rid of this one and just pass null for the managedSentryVersion in the tests. wdyt?
…staller Remove the convenience install() overload that forwarded to the 3-arg version with null. Callers now pass null for managedSentryVersion explicitly, which is clearer about intent. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Use managed Sentry SDK versions from Maven dependency management when auto-installing Sentry dependencies.
When a project imported
sentry-bomorsentry-opentelemetry-bomwithout declaringio.sentry:sentry, the plugin fell back to its bundled SDK version. That could install Sentry modules at a different version than the BOM selected. This now reads the managed Sentry version first and feeds it into the Sentry and integration installers, while preserving the existing behavior of using an already-resolvedio.sentry:sentrydependency when present.