Skip to content

Trim down runtime dependencies a bit - #424

Merged
gnodet merged 1 commit into
apache:masterfrom
gnodet:trim-down-deps
Sep 29, 2026
Merged

gnodet merged 1 commit into
apache:masterfrom
gnodet:trim-down-deps

Conversation

@gnodet

@gnodet gnodet commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@slachiewicz

Copy link
Copy Markdown
Member

The last CI run on this branch was 2025-10-15, and GitHub has deleted the logs since, so there's no way to tell whether the change still builds against master.

A rebase triggers a fresh run and makes the state readable again. If you'd rather not carry it forward, closing is equally useful — the PR isn't being ignored, it's unreadable.

The branch also conflicts with master now, so that needs resolving before CI can say anything. Say the word if you'd like a hand with it.

This comment was created with AI assistance.

@slachiewicz slachiewicz added the waiting-for-feedback Waiting for 90 days until issues or pull request will be closed label Aug 24, 2026

@gnodet-bot gnodet-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.

The overall direction is correct: removing sisu.plexus from compile scope (the plugin uses new DI annotations — @Mojo, @Named, @Inject — not the legacy @Component, so sisu is a runtime concern provided by Maven itself), moving maven-api-settings and maven-xml from provided to test (confirmed no imports in main sources), switching from maven-plugin-testing-harness to maven-testing, and excluding the stale maven-api-meta from maven-filtering.

Two nits before merge.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

Comment thread pom.xml Resolved
Comment thread pom.xml Resolved

@gnodet-bot gnodet-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.

Re-reviewed after rebase (force-push). The dependency changes are correct:

  • maven-api-settings, maven-xml: no imports in main sources — safe to move to test scope
  • sisu.plexus: plugin uses Maven 4 DI annotations, sisu is a runtime concern provided by Maven — correct removal
  • commons-io: only used in test stubs, replaced by plexus-utils.FileUtils — clean swap
  • maven-api-meta exclusion from maven-filtering: safe — stale beta-3 pin with zero imports in this plugin
  • maven-testing replacing maven-plugin-testing-harness: correct Maven 4 migration

Correction on previous review: the guice nit was a false positive. maven-testing provides guice:classes (classifier), while this POM declares guice (no classifier, v7.0.0) — different Maven artifacts, not redundant.

The junit-jupiter-api nit remains valid (redundant with maven-testing transitive) but is harmless.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet-bot gnodet-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.

Re-reviewed after force-push (471d0c5). The guice removal from the previous review is addressed — clean.

One nit remains from the previous review: junit-jupiter-api is still redundant with maven-testing.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

Comment thread pom.xml Resolved

@gnodet-bot gnodet-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.

Re-reviewed after force-push (633a051). The guice nit from the previous review is addressed — guiceVersion property and explicit guice dependency both removed. Clean.

One nit remains unaddressed from the previous review.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

Comment thread pom.xml Resolved

@gnodet-bot gnodet-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.

Re-reviewed after force-push (2534d98). The new commit correctly adds maven-api-settings as provided — maven-filtering:4.0.0-beta-1 transitively pulls maven-api-settings:4.0.0-beta-3, and this explicit declaration overrides it to ${mavenVersion} (rc-6), consistent with the maven-api-meta exclusion pattern.

The junit-jupiter-api nit from previous reviews remains (redundant with maven-testing transitive), but it's purely cosmetic.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet-bot gnodet-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.

Re-reviewed after force-push (941b752). The new commit adds plexus-container-default 2.1.1 as a runtime dependency with an xbean-reflect exclusion — correct: plexus-build-api needs the Plexus container runtime after sisu.plexus was removed, and xbean-reflect is unused since Maven's Sisu handles component discovery.

Previous findings status:

  • guice nit: addressed (removed in earlier commit) ✅
  • junit-jupiter-api nit: not addressed — raised 4 times, clearly intentional. Not blocking.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet-bot gnodet-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.

Re-reviewed after c0baac81 (fix: use sisu.plexus instead of plexus-container-default for runtime).

Correct call. org.eclipse.sisu:org.eclipse.sisu.plexus:1.1.0 is the proper Sisu-native Plexus adapter — it provides the legacy PlexusContainer API that plexus-build-api needs without dragging in plexus-container-default and its xbean-reflect baggage. Maven ships Sisu internally, so the runtime classes are already present; this declaration just ensures the bridge API is on the compile/runtime classpath.

Previous findings status:

  • guice nit: addressed ✅
  • junit-jupiter-api nit: intentionally kept by author ✅
  • plexus-container-default → sisu.plexus swap: correct ✅

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet-bot gnodet-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.

Re-reviewed after 189707e7 (fix: exclude maven-api-settings from maven-filtering).

Correct. maven-api-settings has zero imports in main or test sources, and is already provided transitively by maven-api-core:4.0.0-rc-6. The exclusion on maven-filtering prevents a stale 4.0.0-beta-3 version from leaking into the classpath — same pattern as the existing maven-api-meta exclusion.

Dependency tree confirms: maven-api-core → maven-api-settings:rc-6 (provided) — no resolution gap.

Previous findings status:

  • guice nit: addressed ✅
  • junit-jupiter-api nit: intentionally kept by author ✅
  • sisu.plexus swap: addressed ✅

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet gnodet added this to the 4.0.0-beta-2 milestone Sep 28, 2026
@github-actions github-actions Bot removed the waiting-for-feedback Waiting for 90 days until issues or pull request will be closed label Sep 28, 2026
@gnodet gnodet added java Pull requests that update Java code maintenance labels Sep 29, 2026
- Switch to maven-testing for test infrastructure
- Restore maven-api-settings as provided dependency (not runtime)
- Use sisu.plexus instead of plexus-container-default for runtime
- Exclude maven-api-settings from maven-filtering (already provided via maven-api-core)
@gnodet
gnodet merged commit 6a712de into apache:master Sep 29, 2026
1 check passed

@gnodet-bot gnodet-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.

Re-reviewed after force-push (f1f5610 — rebase/squash). The squashed commit correctly consolidates all previously-reviewed changes:

  • guiceVersion property and explicit guice dependency: removed ✅
  • maven-api-settings, maven-xml: removed from provided scope ✅
  • maven-api-meta + maven-api-settings exclusions on maven-filtering: correct — prevents stale beta-3 versions from leaking ✅
  • sisu.plexus → runtime scope: correct — plugin uses Maven 4 DI annotations ✅
  • commons-io → plexus-utils.FileUtils.deleteDirectory: clean swap, no API difference ✅
  • maven-plugin-testing-harness → maven-testing: correct Maven 4 migration ✅
  • New test deps (maven-api-xml, maven-api-spi, maven-jline, maven-xml, maven-core): all needed for maven-testing / Maven 4 test harness ✅

Previous findings status:

  • guice nit: addressed ✅
  • junit-jupiter-api nit: intentionally kept by author ✅

This review was generated by an AI agent, Hermès on behalf of @gnodet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Pull requests that update Java code maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants