Skip to content

refactor(templates): remove the freed Gen-2 substrate#278

Merged
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-remove-freed-substrate
Jul 1, 2026
Merged

refactor(templates): remove the freed Gen-2 substrate#278
DemchaAV merged 1 commit into
2.0-devfrom
refactor/2.0-remove-freed-substrate

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Why

With the builtins and the classic cv/cover-letter families removed, their shared substrate packages have no remaining consumer. Verified orphaned across all file types (no reflection / META-INF/services / string-FQN).

What

Delete:

  • templates.blocks, templates.components (Header/Module), templates.themes (plural: Spacing/Typography) — components used blocks + themes; nothing used components, so all three are dead together.
  • templates.support.common (+ the now-empty templates.support package-info).
  • templates.data.common (Header/EmailYaml/LinkYml).
  • their tests, plus CanonicalTemplateComposerPdfBoundaryTest — it Files.walked the deleted templates/support dir for *TemplateComposer.java files that no longer exist (subject-less) — and its stale allowlist entry.

Trim the data + top-level templates package-info prose that named the removed packages (and the stale "built-in templates" / "deprecated namespace" claims).

Kept: templates.core, all */v2 stacks, templates.api, data.{invoice,proposal,schedule}. The core.theme.{Spacing,Typography} name-twins are unrelated and untouched.

Follow-up (not this PR): a lightweight PDF-boundary guard scoped to the surviving templates/** v2 surface would restore the invariant the deleted test guarded (the old one's subject — the support composers — is gone).

Tests

./mvnw verify javadoc:javadoc -pl . — 1403 tests, 0 failures, javadoc clean. Examples + benchmarks compile; benchmarks test + perf-smoke + examples-generation smoke (85) green. japicmp report-only on this line.

With the builtins and the classic cv/cover-letter families gone, their
shared substrate packages have no remaining consumer: templates.blocks,
templates.components (Header/Module), templates.themes (Spacing/Typography),
templates.support.common, and templates.data.common. components used blocks
and themes; nothing used components — the three are dead together.

Delete those packages and their tests, plus the now-empty templates.support
package-info and CanonicalTemplateComposerPdfBoundaryTest (it walked the
deleted support directory for *TemplateComposer files that no longer exist)
and its stale allowlist entry. Trim the data and top-level templates
package-info prose that named the removed packages.

Tests: ./mvnw verify javadoc:javadoc -pl . — 1403 tests, 0 failures, javadoc
clean; examples + benchmarks compile; perf-smoke + examples-generation smoke
(85) green.
@DemchaAV DemchaAV merged commit 9340df1 into 2.0-dev Jul 1, 2026
11 checks passed
@DemchaAV DemchaAV deleted the refactor/2.0-remove-freed-substrate branch July 1, 2026 19:12
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