Publish per-platform Maven CLI artifacts
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- build-system, release
Research direction
Start by reviewing the current GitHub release assets and Craft’s existing Maven publishing support, then examine how the Android Gradle Plugin consumes the CLI. Done means per-platform Maven artifacts are published so consumers can resolve only the host-platform binary, with the plugin JAR remaining small; Gradle Module Metadata is preferred when practical.
Written by the indexing model from the issue text.
Description
The Android Gradle Plugin currently bundles every platform binary of the old sentry-cli into one ~46MB artifact. The new CLI’s compressed platform binaries are roughly 4× larger (e.g. linux-arm64 ~34.8MB vs sentry-cli ~8.8MB), so bundling all platforms would push SAGP toward ~180MB. That slows customer builds and would increase Maven Central egress on weekly plugin releases. sentry-fastlane-plugin has the same consumer pattern.
Current behavior
- CLI ships per-platform GitHub release assets only (for example
sentry-linux-arm64.gzat 0.42.2). - SAGP needs a trusted, dependency-cacheable binary path. Downloading arbitrary executables outside Maven bypasses Gradle dependency lock/verification and is a supply-chain concern (gradle/gradle#28530).
- Hosting outside Maven Central is not viable for customers (checksums, signing, custom repo reliability).
Gap
There is no Maven Central package that lets consumers resolve only the host-platform binary, so integrators are stuck bundling every platform or downloading outside the dependency graph.
Proposal
Raised for SAGP / Android packaging:
- Publish per-platform Maven artifacts (for example
io.sentry:sentry:<version>:<os-arch>) so Gradle pulls only the host platform. - Keep the plugin JAR small (~1MB); fresh installs pay one platform binary (~35MB), and plugin bumps that do not change the CLI version would not re-download the binary.
- Prefer Gradle Module Metadata when practical so consumers can declare a dependency without an explicit os/arch classifier; classifiers alone are enough as a first step.
- Reuse Craft’s existing Maven publishing support if that fits the release pipeline.
Related idea: split Node runtime from the app
Also raised in the same discussion:
- Split the shipped CLI into the Node.js runtime and the app payload instead of one fat binary.
- Let Gradle depend on Node as its own Maven artifact, then layer the smaller CLI app on top of that runtime.
- Weekly plugin upgrades would stay smaller when the Node version is unchanged and only the app part needs a bump.
Raised by the Android team during the CLI cutover size discussion.
Requested by bete.
--
- Dominant language
- TypeScript
- Stars
- 121
- Forks
- 14
- Avg merge
- 22h 3m
- Merged PRs (30d)
- 94
Contributor guide
No contributing guide indexed for this repository
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/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
bug jared
-
jared
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·