Gradle plugin expects DSN for build
Integration
sentry
Java Version
21
Version
4.5.1
Steps to Reproduce
gradle clean build
Expected Result
No error message from Sentry
Actual Result
error: Auth token is required for this request. Please run sentry-cli login and try again!
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output. Please attach the full debug log to all bug reports.
Note that our DSN is stored in AWS param store, and is therefore loaded dynamically at runtime. I expect this would also be an issue if I had the DSN in a Spring properties file.
@jasonab thanks for reaching out! Just for clarification, could you answer the following questions:
- Are you building an Android app? And if so, do you apply our
io.sentry.android.gradleplugin? And which version? - Does the error message cause the build to fail?
This is a Spring application, not Android - I was using v4.5.1. The build did not fail, but was noisy.
@jasonab, alright thanks for getting back! We have identified the issue and are working on a fix now!
I believe this should be tackled by https://github.com/getsentry/sentry-android-gradle-plugin/pull/708 now
hey @jasonab the issue has been addressed in the version 4.6.0, which just has been published. Please give it a try and let us know. Thank you!
yes, I can confirm the problem is fixed - thanks!