Skip to content

ADFA-4202: Guard tooling-api shadow jar against public-suffix-list regression - #1595

Merged
hal-eisen-adfa merged 1 commit into
stagefrom
fix/ADFA-4202-remove-public-suffix-list
Jul 29, 2026
Merged

ADFA-4202: Guard tooling-api shadow jar against public-suffix-list regression#1595
hal-eisen-adfa merged 1 commit into
stagefrom
fix/ADFA-4202-remove-public-suffix-list

Conversation

@davidschachterADFA

Copy link
Copy Markdown
Collaborator

Summary

  • ADFA-4202 (drop the unused mozilla/public-suffix-list.txt httpclient resource from the APK) was already fixed under ADFA-4551 via app/build.gradle.kts's packaging.resources.excludes.
  • That exclude only governs the top-level APK resource merge — it can't reach bytes already baked into tooling-api-impl's shadow/fat jar (tooling-api-all.jar), which is copied in as a raw asset.
  • Adds a matching exclude(...) to the shadowJar task so a future dependency shift (e.g. sdklib pulling httpclient in differently) can't reintroduce the file through that path.

Test plan

  • ./gradlew :subprojects:tooling-api-impl:jar builds successfully
  • unzip -l tooling-api-all.jar confirms mozilla/public-suffix-list.txt is absent
  • ./gradlew spotlessCheck passes

🤖 Generated with Claude Code

…gression

The APK-level exclude for httpclient's mozilla/public-suffix-list.txt
(ADFA-4551) only covers app/build.gradle.kts's packaging.resources
merge, not bytes already baked into tooling-api-impl's shadow jar.
Exclude it there too so a future dependency shift can't reintroduce it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 83396a8a-47bb-454a-bb61-39e250e9d3cd

📥 Commits

Reviewing files that changed from the base of the PR and between 2e606b7 and b1db1ad.

📒 Files selected for processing (1)
  • subprojects/tooling-api-impl/build.gradle.kts

📝 Walkthrough
  • Excludes the unused mozilla/public-suffix-list.txt resource from the tooling-api-all.jar shadow JAR.
  • Prevents the resource from being reintroduced through future dependency changes.
  • Validation completed with a successful Gradle build, archive inspection, and spotlessCheck.
  • No notable risks or best-practice violations identified.

Walkthrough

The tooling API’s shadowJar task now excludes the transitive mozilla/public-suffix-list.txt resource and documents the packaging-level exclusion.

Changes

Tooling packaging

Layer / File(s) Summary
Exclude public-suffix resource
subprojects/tooling-api-impl/build.gradle.kts
Configures shadowJar to omit mozilla/public-suffix-list.txt from the shaded artifact and documents its transitive origin.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Poem

A rabbit hops through shaded jars,
“No suffix list among the stars!”
One transitive file now stays away,
From every bundled byte today.
“Clean packaging!” we cheer and play.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a shadowJar guard for the public-suffix-list regression.
Description check ✅ Passed The description is directly about the shadowJar exclusion change and its validation steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ADFA-4202-remove-public-suffix-list

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hal-eisen-adfa
hal-eisen-adfa merged commit ee6d454 into stage Jul 29, 2026
4 checks passed
@hal-eisen-adfa
hal-eisen-adfa deleted the fix/ADFA-4202-remove-public-suffix-list branch July 29, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants