Mix of Sentry dependency versions
Maintainers usually reply within 1 day
@romtsn is already working on this.
Since Feb 12, 2025.
Assessment
This issue has not been assessed yet.
Description
Gradle Version
AGP Version
Code Minifier/Optimizer
None
Version
5.0.0
Sentry SDK Version
8.0.0
Steps to Reproduce
Have a project using the gradle plugin, e.g. with version 5.0.0 that should use Java SDK 8.0.0. Then manually define a dependency, e.g.:
dependencies {
implementation 'io.sentry:sentry-opentelemetry-agentless-spring:8.1.0'
}
sentry {
// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
// This enables source context, allowing you to see your source
// code as part of your stack traces in Sentry.
includeSourceContext = true
org = "sentry-sdks"
projectName = "java-spring-boot-k0"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
}
Also behaves the same way when pinning the "wrong" version on the plugin:
dependencies {
implementation 'io.sentry:sentry-opentelemetry-agentless-spring:8.1.0'
}
sentry {
// Generates a JVM (Java, Kotlin, etc.) source bundle and uploads your source code to Sentry.
// This enables source context, allowing you to see your source
// code as part of your stack traces in Sentry.
includeSourceContext = true
org = "sentry-sdks"
projectName = "java-spring-boot-k0"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
autoInstallation {
sentryVersion = "8.0.0"
}
}
Expected Result
Either the plugin uses the same version for all dependencies or notifies the customer, e.g. by failing the build, as otherwise this might only be caught in production / after releasing an app.
Actual Result
AbstractMethodError or NoSuchMethodError and similar problems caused by a version mismatch between Sentry dependencies.
- Dominant language
- Kotlin
- Stars
- 184
- Forks
- 41
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 19
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-android-gradle-plugin
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsentry/sentry-android-gradle-plugin#1454 · 1 comment ·
Maintainers usually reply within 1 day
-
Android Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
getsentry/sentry-android-gradle-plugin#1369 · 1 comment ·
Maintainers usually reply within 1 day
-
Android good first issue Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-android-gradle-plugin#1266 · 1 comment ·
Maintainers usually reply within 1 day
-
Android Feature Stale Waiting for: Community
Difficulty 4/5 3-5 days Newbie friendliness 45/100
getsentry/sentry-android-gradle-plugin#1406 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Task
Difficulty 4/5 3-5 days Newbie friendliness 45/100
getsentry/sentry-android-gradle-plugin#1354 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-android-gradle-plugin
Similar issues
-
Source is down
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
keiyoushi/extensions-source#19491 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
MTES-MCT/rapportnav2#1557 ·
Maintainers usually reply within 1 day
-
ready-for-agent
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
emm3000/Just-Chill#543 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vaadin/intellij-plugin#600 ·
-
accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 65/100