Skip to content

Commit 0d30a27

Browse files
authored
chore(build): scope byte-buddy as test to keep it out of the published POM (#79)
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).
1 parent c4c87f5 commit 0d30a27

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ follow semantic versioning; release dates are ISO 8601.
4949
full-height column fills are unchanged. Adds top-/bottom-/mid-band
5050
regression tests.
5151

52+
### Build
53+
54+
- **`byte-buddy` is now `<scope>test</scope>`.** Mockito already excludes
55+
its transitive `byte-buddy` and the project pins a single version in a
56+
standalone dependency; that dependency was missing a scope, so the
57+
published POM advertised `byte-buddy` as a compile dependency even
58+
though no production code references it. Setting `<scope>test</scope>`
59+
keeps the version pin but keeps `byte-buddy` out of consumers' runtime
60+
classpath (`mvn dependency:tree` shows it only as `:test`).
61+
5262
## v1.6.4 — 2026-05-22
5363

5464
Bug fix + structured-block patch. Adds two new public Block types —

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
<groupId>net.bytebuddy</groupId>
221221
<artifactId>byte-buddy</artifactId>
222222
<version>${byteBuddy.version}</version>
223+
<scope>test</scope>
223224
</dependency>
224225
<dependency>
225226
<groupId>org.mockito</groupId>

0 commit comments

Comments
 (0)