Skip to content

chore(build): scope byte-buddy as test (PR-7.2)#79

Merged
DemchaAV merged 1 commit into
developfrom
chore/byte-buddy-test-scope
May 30, 2026
Merged

chore(build): scope byte-buddy as test (PR-7.2)#79
DemchaAV merged 1 commit into
developfrom
chore/byte-buddy-test-scope

Conversation

@DemchaAV
Copy link
Copy Markdown
Owner

Summary

  • Set <scope>test</scope> on the standalone byte-buddy dependency in pom.xml.
  • Add a Build subsection to the in-progress v1.6.5 — Planned CHANGELOG entry documenting the publish-hygiene fix.

Why

byte-buddy is used only by Mockito at test time. Mockito already
excludes its transitive byte-buddy (so the project can pin a single
version) but the standalone pinning dependency was missing a scope —
the published POM therefore advertised byte-buddy as a compile
dependency even though no production code references it.

With <scope>test</scope> the version pin stays, but consumers no
longer inherit byte-buddy on their runtime classpath.

This is the second of three PRs unblocking the v1.6.5 cut (after
PR-7.1 ci/exec-plugin-drift-fix and before PR-7.3
fix/pagebackgrounds-empty-and-row-weights). Tracked in the private
release-readiness taskboard.

Verification

  • ./mvnw -pl . dependency:tree — both net.bytebuddy:byte-buddy:jar:1.18.8 and the transitive byte-buddy-agent:jar:1.17.7 now show :test only; no runtime branch references either.
  • ./mvnw test -pl .1016 tests, 0 failures, 0 errors (~54 s).

Test plan

  • dependency:tree shows no runtime byte-buddy
  • Full canonical suite green locally
  • CI green on PR

…d POM

Mockito already excludes its transitive byte-buddy and we pin a single
version in a standalone dependency; that dependency was missing a scope,
so the published POM advertised byte-buddy as a compile dependency even
though no production code references it. Setting <scope>test</scope>
keeps the version pin while keeping byte-buddy off consumers' runtime
classpath; mvn dependency:tree now shows both byte-buddy and
byte-buddy-agent only with :test.

Part of v1.6.5 publish hygiene (PR-7.2).
@DemchaAV DemchaAV merged commit 0d30a27 into develop May 30, 2026
9 checks passed
@DemchaAV DemchaAV deleted the chore/byte-buddy-test-scope branch May 30, 2026 09:30
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.

1 participant