Skip to content

Make CLI (version) configureable #6

@StefMa

Description

@StefMa

Currently the CLI version is hardcoded:

private fun findSentryCliDownloadUrl(): String {
val osName = System.getProperty("os.name").lowercase(Locale.ROOT)
return when {
osName.contains("mac") ->
"https://github.com/getsentry/sentry-cli/releases/download/2.12.0/sentry-cli-Darwin-arm64"
osName.contains("nix") || osName.contains("nux") || osName.contains("aix") ->
"https://github.com/getsentry/sentry-cli/releases/download/2.12.0/sentry-cli-Linux-x86_64"
else -> throw GradleException("We do not support $osName")
}
}

We should make it possible that plugin consumers can change the version via extensions (see also #4).

To note:
Updating the version of the CLI might break the uploading in case the CLI parameters change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions