| name | copyright-manager |
| description | Rules for updating copyright headers whenever a file is modified. |
License Header Rules for OpenInfra Foundation Europe Team
When to Update License Headers
Update the license header every time you modify a or create a Java or Groovy file.
Rules
1. New files
Add copyright with current year only:
2. If file has OpenInfra copyright already
Update the year range to current year:
3. If file has Nordix copyright
Replace "Nordix" with "OpenInfra" and update year:
Copyright (C) 2021-2024 Nordix Foundation
Copyright (C) 2021-2026 OpenInfra Foundation Europe. All rights reserved.
4. If file has OTHER organization copyright
Add a "Modifications" line below the original:
5. If modifications line exists
Update the year range:
Modifications Copyright (C) 2022-2024 OpenInfra Foundation Europe. All rights reserved.
Modifications Copyright (C) 2022-2026 OpenInfra Foundation Europe. All rights reserved.
Standard Template
Quick Reference
| Scenario | Action |
|---|
| New file | Add copyright with current year only |
| OpenInfra copyright exists | Update end year |
| Nordix copyright exists | Replace with OpenInfra, update year |
| Other org copyright exists | Add "Modifications Copyright (C) YYYY OpenInfra..." |
| Modifications line exists | Update end year |