Skip to content

chore: declare inceptionYear 2019 and normalise copyright headers - #252

Merged
OliverWolffGIP merged 1 commit into
mainfrom
chore/declare-inception-year
Aug 27, 2026
Merged

chore: declare inceptionYear 2019 and normalise copyright headers#252
OliverWolffGIP merged 1 commit into
mainfrom
chore/declare-inception-year

Conversation

@OliverWolffGIP

@OliverWolffGIP OliverWolffGIP commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Why

<inceptionYear> is an inherited POM element, and the mycila license-maven-plugin binds the copyright ${year} to project.inceptionYearnot to the current year:

ldc           "year"
getfield      project
invokevirtual MavenProject.getInceptionYear()

cui-parent-pom held the only declaration in the hierarchy (2022), so this project reported 2022 and every -Ppre-commit run restamped every source header. Declaring the real year stops that.

The year

2019 — from this repository's own first commit, not the parent and not GitHub's created_at.

What is in this PR

Two things, and it is worth being precise about the second:

  1. pom.xml gains <inceptionYear>2019</inceptionYear>, and the license plugin rewrites every source header to © 2019-present. This is the change being made.
  2. Pre-existing gate drift, ~24 non-header lines. -Ppre-commit also runs OpenRewrite, which reorders imports, reformats, and adds build-plugin blocks. Confirmed pre-existing: running the gate on unmodified main, with no inceptionYear at all, produces the same kind of changes.

It cannot be split out. The gate re-applies it on the next run, so a header-only tree would not be gate-stable — and gate-stability is precisely the property this PR exists to restore.

Verification

The gate was run twice. The second run rewrote nothing and left a tree identical to the first. That idempotence is what was broken, so it is the thing checked — not merely that the build passes.

Confirmed afterwards that every .java header in the tree reads © 2019-present, with no stragglers on other years.

<inceptionYear> is an inherited POM element, and the mycila license plugin
binds the copyright ${year} to project.inceptionYear - not to the current
year. cui-parent-pom held the only declaration in the hierarchy (2022), so
this project reported 2022 and every -Ppre-commit run restamped every
source header. Declaring the real year, taken from this repo's first
commit, stops that.

The 197 header changes are that one-time correction. Verified by running
the gate twice: the second run rewrites nothing and leaves a working tree
identical to the first, which is the property that was broken.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014sxAQc2ohWuDz65e2DbVij
@OliverWolffGIP OliverWolffGIP added the skip-bot-review Skip automated bot code review (Gemini/CodeRabbit/Sourcery) label Aug 27, 2026

@sourcery-ai sourcery-ai 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.

Sorry @OliverWolffGIP, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 7 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed) (1)
  • skip-bot-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: cuioss/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6aa19c98-2f0e-4db5-8f16-418d6ee6510f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@OliverWolffGIP
OliverWolffGIP added this pull request to the merge queue Aug 27, 2026
Merged via the queue into main with commit df517ba Aug 27, 2026
22 checks passed
@OliverWolffGIP
OliverWolffGIP deleted the chore/declare-inception-year branch August 27, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-bot-review Skip automated bot code review (Gemini/CodeRabbit/Sourcery)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants