René's URL Explorer Experiment


Title: build(android): Download Robolectric android-all jars with Gradle by runningcode · Pull Request #6553 · getsentry/sentry-java · GitHub

Open Graph Title: build(android): Download Robolectric android-all jars with Gradle by runningcode · Pull Request #6553 · getsentry/sentry-java

X Title: build(android): Download Robolectric android-all jars with Gradle by runningcode · Pull Request #6553 · getsentry/sentry-java

Description: 📜 Description Adds an io.sentry.robolectric build-logic plugin, applied to the seven modules with Robolectric tests. Gradle now downloads the android-all jars the tests need, instead of Robolectric downloading them from Maven Central during the tests, as recommended in Improving android-all downloading. The plugin lists the 8 API levels our tests use (21, 24, 28–31, 33, 35), one configuration per jar. Tests read the jars straight from Gradle's cache through a small robolectric-deps.properties file, so nothing is copied. A Robolectric upgrade can change the jar versions. A missing one fails the test with no artifacts found for org.robolectric:android-all-instrumented:…, and a comment in libs.versions.toml points to the plugin. 💡 Motivation and Context This makes the downloads more reliable; it barely changes build speed. Gradle retries, respects proxy settings, and fetches each jar once per machine, before any test runs. Downloading in the middle of a test is what causes the flaky SHA-mismatch failures the post describes. It is not a meaningful speedup: CI downloads all the jars in about 10 s. Because of the configuration cache, every check also resolves the jars, even when the tests come from the build cache. That's a local lookup once setup-gradle has them, but the Build job's cache grows by about 0.95 GB. 💚 How did you test it? All Robolectric tests pass in the seven modules. With one API level removed from the list, its tests fail, so Robolectric never falls back to ~/.m2. On CI, the build scan shows each jar downloaded once, even though six modules resolved it. 📝 Checklist I added GH Issue ID & Linear ID I added tests to verify the changes. No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled. I updated the docs if needed. I updated the wizard if needed. Review from the native team if needed. No breaking change or entry added to the changelog. No breaking change for hybrid SDKs or communicated to hybrid SDKs. Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec. 🔮 Next steps After merge, check that a PR's build scan shows no android-all downloads, to confirm setup-gradle keeps the jars between runs. 🤖 Generated with Claude Code #skip-changelog

Open Graph Description: 📜 Description Adds an io.sentry.robolectric build-logic plugin, applied to the seven modules with Robolectric tests. Gradle now downloads the android-all jars the tests need, instead of Robolectric...

X Description: 📜 Description Adds an io.sentry.robolectric build-logic plugin, applied to the seven modules with Robolectric tests. Gradle now downloads the android-all jars the tests need, instead of Robolectric...

Opengraph URL: https://github.com/getsentry/sentry-java/pull/6553

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fd239b99-6f27-ab76-6263-ae2ad96f77de
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id90B2:1FD1:1A3E4DA:23A7971:6B0452CD
html-safe-nonceffd7b18240717d251fd76e3b49b1e4524e47833c77a3183bfeeb5d6a0ea67d3d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEIyOjFGRDE6MUEzRTREQToyM0E3OTcxOjZCMDQ1MkNEIiwidmlzaXRvcl9pZCI6IjY5MjQ0MDY1Nzc3NDc0ODEyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb2ef4a0f0ac731a328d7e127deee54c6a1b63052b243f47fa8d8a7ce7412f1ee
hovercard-subject-tagpull_request:5257127091
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-java/pull/6553/files
twitter:imagehttps://avatars.githubusercontent.com/u/332597?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/332597?s=400&v=4
og:image:alt📜 Description Adds an io.sentry.robolectric build-logic plugin, applied to the seven modules with Robolectric tests. Gradle now downloads the android-all jars the tests need, instead of Robolectric...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/pull/6553/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fpull%2F6553%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fpull%2F6553%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/pull/6553/files
Reloadhttps://github.com/getsentry/sentry-java/pull/6553/files
Reloadhttps://github.com/getsentry/sentry-java/pull/6553/files
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests58 (58)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-java%2Fissues%2Fnew%2Fchoose
runningcodehttps://github.com/runningcode
mainhttps://github.com/getsentry/sentry-java/tree/main
no/robolectric-android-all-gradlehttps://github.com/getsentry/sentry-java/tree/no/robolectric-android-all-gradle
Conversation 2 https://github.com/getsentry/sentry-java/pull/6553
Commits 1 https://github.com/getsentry/sentry-java/pull/6553/commits
Checks 47 https://github.com/getsentry/sentry-java/pull/6553/checks
Files changed https://github.com/getsentry/sentry-java/pull/6553/files
Please reload this pagehttps://github.com/getsentry/sentry-java/pull/6553/files
build(android): Download Robolectric android-all jars with Gradle https://github.com/getsentry/sentry-java/pull/6553/files#top
Show all changes 1 commit https://github.com/getsentry/sentry-java/pull/6553/files
55bccb8 build(android): Download Robolectric android-all jars with Gradle runningcode Nov 11, 2026 https://github.com/getsentry/sentry-java/pull/6553/commits/55bccb8790a88dad6ecb23f39d91bd582132b84b
Clear filters https://github.com/getsentry/sentry-java/pull/6553/files
Please reload this pagehttps://github.com/getsentry/sentry-java/pull/6553/files
Please reload this pagehttps://github.com/getsentry/sentry-java/pull/6553/files
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-f714fa5f754f0da54abb877f8cf4e3de6341ad321db5f4c697fa602a5da8e4b4
SentryRobolectricPlugin.kt https://github.com/getsentry/sentry-java/pull/6553/files#diff-a9ed908b0a08f134c9d435848df52535eeb68c133f9d0a17d9fb965ad6a2765d
libs.versions.toml https://github.com/getsentry/sentry-java/pull/6553/files#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87df
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-de90dab6e2396ac9171c701e5d6d2d3bbd6f18b1a9f67165c6ae1d492b5a0d74
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-15d2f2a501f4b1c92770bb85fce39bce6f7f20fe1686f2a2738ccd56663e8cf0
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-e265bd71e5dd0701421965933874cd31ae924b000d1f413711935dec13c5fab3
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-56d998bf8db4a3d50c5f2cbd78db42cdc6f06da537eb67ec1de0ea97e6f01cfe
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-d22a1cfaacc0f51d43f35eb438310c4079684f52e1584efd913bfecc9d154af5
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-dd6437cd8d655b99a7a2146a7ec08b4c9298e5def280c8680a39d827e2bbd69c
build.gradle.kts https://github.com/getsentry/sentry-java/pull/6553/files#diff-aa0e0952f387812fcc6bc4b4c2ab948e7e1766ddf5367d24f12f59167505429e
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
build-logic/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-f714fa5f754f0da54abb877f8cf4e3de6341ad321db5f4c697fa602a5da8e4b4
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/build-logic/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-f714fa5f754f0da54abb877f8cf4e3de6341ad321db5f4c697fa602a5da8e4b4
https://github.com/getsentry/sentry-java/pull/6553/files#diff-f714fa5f754f0da54abb877f8cf4e3de6341ad321db5f4c697fa602a5da8e4b4
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
build-logic/src/main/kotlin/io/sentry/gradle/SentryRobolectricPlugin.kthttps://github.com/getsentry/sentry-java/pull/6553/files#diff-a9ed908b0a08f134c9d435848df52535eeb68c133f9d0a17d9fb965ad6a2765d
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/build-logic/src/main/kotlin/io/sentry/gradle/SentryRobolectricPlugin.kt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
gradle/libs.versions.tomlhttps://github.com/getsentry/sentry-java/pull/6553/files#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87df
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/gradle/libs.versions.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87df
https://github.com/getsentry/sentry-java/pull/6553/files#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87df
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-core/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-de90dab6e2396ac9171c701e5d6d2d3bbd6f18b1a9f67165c6ae1d492b5a0d74
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-core/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-de90dab6e2396ac9171c701e5d6d2d3bbd6f18b1a9f67165c6ae1d492b5a0d74
https://github.com/getsentry/sentry-java/pull/6553/files#diff-de90dab6e2396ac9171c701e5d6d2d3bbd6f18b1a9f67165c6ae1d492b5a0d74
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-distribution/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-15d2f2a501f4b1c92770bb85fce39bce6f7f20fe1686f2a2738ccd56663e8cf0
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-distribution/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-15d2f2a501f4b1c92770bb85fce39bce6f7f20fe1686f2a2738ccd56663e8cf0
https://github.com/getsentry/sentry-java/pull/6553/files#diff-15d2f2a501f4b1c92770bb85fce39bce6f7f20fe1686f2a2738ccd56663e8cf0
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-navigation/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-e265bd71e5dd0701421965933874cd31ae924b000d1f413711935dec13c5fab3
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-navigation/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-e265bd71e5dd0701421965933874cd31ae924b000d1f413711935dec13c5fab3
https://github.com/getsentry/sentry-java/pull/6553/files#diff-e265bd71e5dd0701421965933874cd31ae924b000d1f413711935dec13c5fab3
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-navigation3/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-56d998bf8db4a3d50c5f2cbd78db42cdc6f06da537eb67ec1de0ea97e6f01cfe
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-navigation3/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-56d998bf8db4a3d50c5f2cbd78db42cdc6f06da537eb67ec1de0ea97e6f01cfe
https://github.com/getsentry/sentry-java/pull/6553/files#diff-56d998bf8db4a3d50c5f2cbd78db42cdc6f06da537eb67ec1de0ea97e6f01cfe
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-ndk-outproc/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-d22a1cfaacc0f51d43f35eb438310c4079684f52e1584efd913bfecc9d154af5
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-ndk-outproc/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-d22a1cfaacc0f51d43f35eb438310c4079684f52e1584efd913bfecc9d154af5
https://github.com/getsentry/sentry-java/pull/6553/files#diff-d22a1cfaacc0f51d43f35eb438310c4079684f52e1584efd913bfecc9d154af5
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-android-replay/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-dd6437cd8d655b99a7a2146a7ec08b4c9298e5def280c8680a39d827e2bbd69c
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-android-replay/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-dd6437cd8d655b99a7a2146a7ec08b4c9298e5def280c8680a39d827e2bbd69c
https://github.com/getsentry/sentry-java/pull/6553/files#diff-dd6437cd8d655b99a7a2146a7ec08b4c9298e5def280c8680a39d827e2bbd69c
https://github.com/getsentry/sentry-java/blob/main/.github/CODEOWNERS#L1
sentry-compose/build.gradle.ktshttps://github.com/getsentry/sentry-java/pull/6553/files#diff-aa0e0952f387812fcc6bc4b4c2ab948e7e1766ddf5367d24f12f59167505429e
View file https://github.com/getsentry/sentry-java/blob/55bccb8790a88dad6ecb23f39d91bd582132b84b/sentry-compose/build.gradle.kts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-java/pull/6553/{{ revealButtonHref }}
https://github.com/getsentry/sentry-java/pull/6553/files#diff-aa0e0952f387812fcc6bc4b4c2ab948e7e1766ddf5367d24f12f59167505429e
https://github.com/getsentry/sentry-java/pull/6553/files#diff-aa0e0952f387812fcc6bc4b4c2ab948e7e1766ddf5367d24f12f59167505429e
Please reload this pagehttps://github.com/getsentry/sentry-java/pull/6553/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.