Skip to content

fix(auto-install): Use Sentry BOM version for installs#265

Draft
adinauer wants to merge 3 commits into
mainfrom
side-quest/detect-bom-version-for-install
Draft

fix(auto-install): Use Sentry BOM version for installs#265
adinauer wants to merge 3 commits into
mainfrom
side-quest/detect-bom-version-for-install

Conversation

@adinauer

@adinauer adinauer commented Jul 1, 2026

Copy link
Copy Markdown
Member

Use managed Sentry SDK versions from Maven dependency management when auto-installing Sentry dependencies.

When a project imported sentry-bom or sentry-opentelemetry-bom without declaring io.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-resolved io.sentry:sentry dependency when present.

adinauer and others added 2 commits July 1, 2026 16:07
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>
@@ -26,6 +26,13 @@ public SentryInstaller(final @NotNull Logger logger) {
public @Nullable String install(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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>
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.

2 participants