Skip to content

chore(api): remove the empty api-junit module - #6622

Open
delchev wants to merge 1 commit into
masterfrom
chore/remove-empty-api-junit
Open

chore(api): remove the empty api-junit module#6622
delchev wants to merge 1 commit into
masterfrom
chore/remove-empty-api-junit

Conversation

@delchev

@delchev delchev commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What

Removes components/api/api-junit — a pom-only module with no src/, whose two dependencies are both test-scoped, so it builds an empty jar by construction. It sits in no group-* aggregator, nothing references its artifactId anywhere in the repo, and it is absent from the fat jar's BOOT-INF/lib. Its only observable effect is that every release publishes an empty dirigible-components-api-junit artifact to Maven Central.

Two deletions:

  • the components/api/api-junit/ directory
  • the <module> entry in components/pom.xml

Why removal rather than aggregation

The JUnit capability is unaffected — it ships through three other modules:

  • api-modules-javascript — the JS/TS sdk/junit module (test, assertEquals, …) wrapping org.junit.jupiter.api.Assertions; this pom also carries the compile-scoped junit-jupiter dependency that puts the assertion classes into BOOT-INF/lib
  • ide-junit-resultsTestResultsService / TestResultsEndpoint, the result-tracking side the JS module calls
  • api-modules-java — the self-contained client-Java sdk.junit.Assert (no dependency on api-junit)

The module's git history in the components era is only release version bumps — it was scaffolded during the 6.x→7.0 re-architecture and never populated.

Verification

  • Repo-wide grep for api-junit returns zero references outside the removed module
  • Full reactor mvn -T 1C clean install -P quick-build green after the removal

🤖 Generated with Claude Code

The module contains only a pom.xml (both dependencies test-scoped), has
never had sources in the components era, sits in no group aggregator,
and is referenced by nothing - every release publishes it to Maven
Central as an empty jar.

The actual JUnit capability is unaffected and ships elsewhere:
- the JS/TS sdk/junit module in api-modules-javascript, which also
  carries the runtime junit-jupiter dependency
- TestResultsService/TestResultsEndpoint in ide-junit-results
- the self-contained client-Java sdk.junit.Assert in api-modules-java

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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