Skip to content

chore: move narrowly-used test deps out of root pom#2146

Open
jaydeluca wants to merge 1 commit into
mainfrom
chore/move-niche-test-deps-out-of-root-pom
Open

chore: move narrowly-used test deps out of root pom#2146
jaydeluca wants to merge 1 commit into
mainfrom
chore/move-niche-test-deps-out-of-root-pom

Conversation

@jaydeluca
Copy link
Copy Markdown
Collaborator

@jaydeluca jaydeluca commented May 27, 2026

The root pom.xml was declaring junit-pioneer, awaitility, wiremock, and guava (test scope) as global test dependencies, adding them to the classpath of all 24 core modules. Each is only actually needed by 1–3 modules.

junit-pioneer, awaitility, wiremock, and guava (test scope) were
declared in the root pom.xml, adding them to the classpath of all
24 core modules. Each is only needed by 1–3 modules:

- junit-pioneer: prometheus-metrics-config (SetSystemProperty)
- awaitility: prometheus-metrics-core + prometheus-metrics-exporter-opentelemetry
- wiremock: prometheus-metrics-exporter-opentelemetry (ExemplarTest)
- guava: prometheus-metrics-core, prometheus-metrics-exporter-opentelemetry,
  integration-tests/it-exporter/it-exporter-test

Add version properties for junit-pioneer, awaitility, and wiremock
to the root pom (guava.version already existed). Remove the four
deps from root <dependencies> and add them only in the modules that
actually use them. The shaded opentelemetry module also receives
the same test deps since it copies and compiles the same test sources.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
@jaydeluca jaydeluca force-pushed the chore/move-niche-test-deps-out-of-root-pom branch from f5d8403 to ae2b84f Compare May 27, 2026 19:25
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