René's URL Explorer Experiment


Title: Remove dependency annotations from shaded classes by andimarek · Pull Request #4445 · graphql-java/graphql-java · GitHub

Open Graph Title: Remove dependency annotations from shaded classes by andimarek · Pull Request #4445 · graphql-java/graphql-java

X Title: Remove dependency annotations from shaded classes by andimarek · Pull Request #4445 · graphql-java/graphql-java

Description: Summary define an explicit list of unbundled CLASS-retention annotations to remove from shaded class files add an ASM-powered cleanup stage after shadowing and before final JAR assembly preserve invisible annotations whose annotation classes are bundled, including GraphQL Java and relocated dependency annotations reject new RuntimeInvisibleAnnotations and RuntimeInvisibleParameterAnnotations whose annotation classes are not bundled and are not in the removal list share the class-file rewrite machinery with the existing JaCoCo annotation task compile a Java 11 consumer with class-file warnings treated as errors make the annotation-cleaned JAR the sole unclassified binary artifact and the sole main artifact used by consumers, signing, and publication Artifact pipeline The regular jar and shadowJar outputs are internal inputs to the cleanup pipeline. They now have explicit plain and shadow classifiers and live under build/intermediates, outside build/libs. buildFinalJar is the only task that writes the unclassified binary JAR to build/libs. It consumes the annotation-cleaned class tree directly, so Gradle tracks the actual final archive instead of a temporary archive that is renamed in doLast. The Java API and runtime variants both expose buildFinalJar. The Shadow Java variant and assemble hook are disabled, and shadowRuntimeElements is non-consumable, so dependency resolution cannot select the uncleaned intermediate. Direct signing, Maven Local publication, and remote publication all depend on verification of the final JAR. This separation matters because multiple tasks previously owned the same output path. A direct shadowJar invocation could overwrite the cleaned JAR while Gradle still considered the cleanup/reassembly tasks up to date. Unique intermediate paths plus a single final producer remove that failure mode. Verification ./gradlew outgoingVariants: API and runtime variants expose only buildFinalJar; no consumable Shadow variant remains ./gradlew clean test assemble verifyShadedClassAnnotations compileShadedJarConsumer: passed, including 5,737 tests ./gradlew check -x test -x testng: passed isolated publishGraphqlJavaPublicationToMavenLocal: published only the main, sources, Javadoc, and POM artifacts the isolated Maven-local main JAR had the same SHA-256 as the buildFinalJar output direct ./gradlew jar shadowJar invocation left the final JAR SHA-256 unchanged The cleanup currently removes 1,345 annotations from 330 shaded class files. Artifact size Both artifacts were built through their complete publication pipelines with the same fixed 999.0.0-size-test release version. Artifact Size origin/master before removal 3,878,053 bytes This PR after removal 3,873,126 bytes Reduction 4,927 bytes (0.127%) The uncompressed JAR contents decrease by 16,152 bytes. Both archives contain 2,394 entries, and their manifests are identical.

Open Graph Description: Summary define an explicit list of unbundled CLASS-retention annotations to remove from shaded class files add an ASM-powered cleanup stage after shadowing and before final JAR assembly preserve i...

X Description: Summary define an explicit list of unbundled CLASS-retention annotations to remove from shaded class files add an ASM-powered cleanup stage after shadowing and before final JAR assembly preserve i...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/4445

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e1eb8505-e6ae-ed2f-372a-ffc5f296e852
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE7F2:185F51:E9B5E3:13713DD:6AED46AF
html-safe-nonce65f14ef6eff981f48e98260e124ae81a2b423e8ddeed2ea0f18d6a26137cfa84
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0YyOjE4NUY1MTpFOUI1RTM6MTM3MTNERDo2QUVENDZBRiIsInZpc2l0b3JfaWQiOiI0MjA5MzEyOTMyNTEzNTMxNTY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0bf7c1f07f222fd87f1e282e17c8c8e085f7d4e812f550006b8c8ee370bb9d42
hovercard-subject-tagpull_request:4318032096
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/graphql-java/graphql-java/pull/4445/files
twitter:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1706744?s=400&v=4
og:image:altSummary define an explicit list of unbundled CLASS-retention annotations to remove from shaded class files add an ASM-powered cleanup stage after shadowing and before final JAR assembly preserve i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-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
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4445/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4445%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%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4445%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=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4445/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4445/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4445/files
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests32 (32)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
andimarekhttps://github.com/andimarek
masterhttps://github.com/graphql-java/graphql-java/tree/master
remove-shaded-annotationshttps://github.com/graphql-java/graphql-java/tree/remove-shaded-annotations
Conversation 3 https://github.com/graphql-java/graphql-java/pull/4445
Commits 6 https://github.com/graphql-java/graphql-java/pull/4445/commits
Checks 12 https://github.com/graphql-java/graphql-java/pull/4445/checks
Files changed https://github.com/graphql-java/graphql-java/pull/4445/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4445/files
Remove dependency annotations from shaded classes https://github.com/graphql-java/graphql-java/pull/4445/files#top
Show all changes 6 commits https://github.com/graphql-java/graphql-java/pull/4445/files
3c8b6c1 Remove dependency annotations from shaded classes andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/3c8b6c17d8bc871114080769354ce7db4f965c81
0333a4b Document shaded jar build tasks andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/0333a4bbb39006f93c4a893a56e85ab54eedcb10
096010a Reject unknown invisible annotations andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/096010a955941da812e48a59b2caeecb49647d2f
eec0638 Allow bundled relocated annotations andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/eec0638a9ec1a870afc18f4d664b4e92218f7397
4d8602b Document shaded jar consumer fixture andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/4d8602ba309365842006ef1cfa19d58f0ae562d3
a83cfe3 Make cleaned jar the sole published artifact andimarek Aug 19, 2026 https://github.com/graphql-java/graphql-java/pull/4445/commits/a83cfe3af0d20192de7471d7d4fe2c5bb8606b90
Clear filters https://github.com/graphql-java/graphql-java/pull/4445/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4445/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4445/files
build.gradle https://github.com/graphql-java/graphql-java/pull/4445/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
ShadedJarConsumer.java https://github.com/graphql-java/graphql-java/pull/4445/files#diff-2286b2fdb90332b0cbf3a7f5b9b8746eb52b6a1ab8d10265bd760d4c5ffab661
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4445/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4445/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

Viewport: width=device-width


URLs of crawlers that visited me.