question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration of release name and distribution

See original GitHub issue

Problem Statement

Currently, the only way to override defaults for the plugin is via SENTRY_RELEASE and SENTRY_DIST environment variables. I believe, this is against the Gradle’s best practices for project configuration, and it creates pratical problems when app version and build number come from the app’s build.gradle file, as there is no clean way to override from within build.gradle the values which Sentry’s Gradle Plugin will get from System.getenv(...) call during configuration.

Solution Brainstorm

I suggest to add a way to provide custom release name and build number to the plugin via gradle properties. I am mostly noob in Gradle and Java, thus I’ll leave implementation details for more knowledgeble people 😃

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
marandanetocommented, Dec 7, 2022

Its already possible to do some sort of config with project.ext.sentryCli on Gradle, so this one can fit in there.

1reaction
birdofpreyrucommented, Sep 2, 2022

@marandaneto sure, though as the documentation page you pointed says:

Before disabling the automatic source maps upload, you can set the release and dist as environment variables, SENTRY_RELEASE and SENTRY_DIST respectively. The script that performs the automatic source maps upload will use those values instead the default ones, and they will match the given release and dist. This ensures that the given custom release and dist values are used.

To which I agree, as it is easier just to set these env vars, than to figure out how to correctly configure CLI for source maps upload. And, even if somebody is to upload them manually, the first step for android is to “remove the Gradle integration”, at which point one thinks “why it is not possible to just configure that integration the Gradle way to use desired values” 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set debug and release configurations - Visual Studio (Windows)
Visual Studio projects have separate release and debug configurations for your program. You build the debug version for debugging and the ...
Read more >
Overview of Configuring Releases - ADM Help Centers
Overview of Configuring Releases ; General information: Includes basic information concerning the environment, such as the environment name and ...
Read more >
Distributing Release Bundles - JFrog Documentation
JFrog Distribution enables creating and distributing Release Bundles from the Artifactory service. Each Release Bundle may only contain ...
Read more >
Configuring SNADS and Setting Up SNA Distribution Services
The SNA distribution services (SNADS) function automatically directs distributions with the local system as the destination system name, so the ...
Read more >
QoS: Policing and Shaping Configuration Guide, Cisco IOS ...
QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S -Distribution of Remaining ... As the name implies, a ratio is used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found