Skip to content

Forward port: Add Apache license headers to fix ATR concerns - #12615

Merged
gnodet merged 1 commit into
masterfrom
forward-port/atr-license-headers
Jul 29, 2026
Merged

Forward port: Add Apache license headers to fix ATR concerns#12615
gnodet merged 1 commit into
masterfrom
forward-port/atr-license-headers

Conversation

@gnodet

@gnodet gnodet commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Forward port of Add Apache license headers to fix ATR concerns #12613 from maven-4.0.x to master
  • Adds Apache license headers to 87 files flagged by ATR (Apache Trusted Releases) checks
  • Covers Java test files, shell scripts, XML test data, SPI service loader files, .asf.yaml, Jenkinsfile, and placeholder text files

🤖 Generated with Claude Code

Add missing Apache License headers to files flagged by ATR:
- Java test files (MyMojoTest.java, App.java, AppTest.java)
- Shell script (prepare.sh)
- Config files (Jenkinsfile, .asf.yaml)
- Service loader files (Processor, di.Inject)
- Test pom/metadata XML files in inheritance-repo
- Test placeholder files

Binary .jar files and third-party license texts (EPL, CDDL, BSD)
remain without headers as they cannot be modified.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean forward port of #12613 (already merged on maven-4.0.x). Mechanical addition of standard Apache License 2.0 headers to 87 files flagged by ATR checks. All headers use the correct comment syntax per file type (/* */ for Java/Groovy, <!-- --> for XML/POM, # for YAML/SPI/shell, plain text for .txt).

Three minor incidental changes (all benign):

  1. Jenkinsfile#!groovy shebang removed (optional, does not affect pipeline execution)
  2. NOTICE — URL modernized from http to https
  3. AppTest.java — Import ordering adjusted (formatter-induced cleanup)

Shell script correctly preserves #!/bin/sh shebang on line 1 with license after. XML files correctly preserve <?xml?> declarations.

(Posting as COMMENT because GitHub does not allow self-approval — this would otherwise be an APPROVE.)

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of gnodet

@gnodet
gnodet merged commit 5b9e2e5 into master Jul 29, 2026
43 of 44 checks passed
@gnodet
gnodet deleted the forward-port/atr-license-headers branch July 29, 2026 19:26
@gnodet gnodet added this to the 4.1.0 milestone Jul 29, 2026
@gnodet gnodet self-assigned this Jul 29, 2026
@github-actions

Copy link
Copy Markdown

@gnodet Please assign appropriate label to PR according to the type of change.

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