Skip to content

Add common OSS license templates: EUPL 1.1/1.2, ISC, CDDL 1.0, Artistic 2.0, CC0 1.0#1029

Merged
mathieucarbou merged 7 commits intomasterfrom
copilot/add-missing-oss-licenses
Mar 13, 2026
Merged

Add common OSS license templates: EUPL 1.1/1.2, ISC, CDDL 1.0, Artistic 2.0, CC0 1.0#1029
mathieucarbou merged 7 commits intomasterfrom
copilot/add-missing-oss-licenses

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 9, 2026

Several widely-used OSS licenses were missing from the built-in template set.

New templates

  • EUPL-1.1.txt — European Union Public License v1.1
  • EUPL-1.2.txt — European Union Public License v1.2
  • ISC.txt — ISC License
  • CDDL-1.0.txt — Common Development and Distribution License 1.0
  • Artistic-2.0.txt — Artistic License 2.0
  • CC0-1.0.txt — Creative Commons Zero 1.0 Universal

Usage

<header>com/mycila/maven/plugin/license/templates/EUPL-1.2.txt</header>
<!-- or -->
<header>com/mycila/maven/plugin/license/templates/ISC.txt</header>

Docs

Updated docs/index.md template list to reflect all additions, sorted alphabetically.

Tests

Added BuiltInTemplatesTest to validate all 33 built-in license templates:

  • test_template_count() — asserts the expected template count (must be updated when adding new templates)
  • test_template_loadable() — parametrized test verifying each template is accessible as a classpath resource and can be parsed as a Header object with content

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 9, 2026 02:00
…tic 2.0, CC0 1.0

Co-authored-by: hazendaz <975267+hazendaz@users.noreply.github.com>
Co-authored-by: hazendaz <975267+hazendaz@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for additional common OSS licenses Add common OSS license templates: EUPL 1.1/1.2, ISC, CDDL 1.0, Artistic 2.0, CC0 1.0 Mar 9, 2026
@hazendaz hazendaz marked this pull request as ready for review March 13, 2026 03:37
@hazendaz hazendaz requested a review from mathieucarbou March 13, 2026 03:37
Copy link
Copy Markdown
Owner

@mathieucarbou mathieucarbou left a comment

Choose a reason for hiding this comment

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

@copilot : you will also need to update the unit tests: there are one or some that are validating all license files and their count

…les and their count

Co-authored-by: mathieucarbou <61346+mathieucarbou@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 13, 2026

@copilot : you will also need to update the unit tests: there are one or some that are validating all license files and their count

Added BuiltInTemplatesTest.java in commit 5813549. It includes:

  • test_template_count() — asserts exactly 33 built-in templates exist (must be updated when adding new ones)
  • test_template_loadable() — parametrized test verifying each of the 33 templates can be found as a classpath resource and parsed as a Header object with at least one line of content

All 6 newly-added templates (EUPL-1.1.txt, EUPL-1.2.txt, ISC.txt, CDDL-1.0.txt, Artistic-2.0.txt, CC0-1.0.txt) are included in the test list.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkstyle.org
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/xml/tools/xml-extractor.jar --fileList=/tmp/codeql-scratch-25dc4ce2f4f3bc04/dbs/java/working/files-to-index13545545526858566747.list --sourceArchiveDir=/tmp/codeql-scratch-25dc4ce2f4f3bc04/dbs/java/src --outputDir=/tmp/codeql-scratch-25dc4ce2f4f3bc04/dbs/java/trap/java /src/main/java/com/mycila/maven/plugin/license/document/Document.java nse-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/MavenProjectLicenses-m nse-maven-pluginbash b.com&gt; ultLicensePolicy--noprofile ractLicensePolicyEnforcer.java egat�� rl.toURI\|getResource\b nse-maven-plugin/src/main/java/com/mycila/maven/plugin/license/LicenseFormatMojo.java nse-maven-plugin/src/main/java/com/mycila/maven/plugin/license/dependencies/DefaultLicensePolicyEnforcer.java nse-maven-plugingit nse-maven-plugindiff nse-maven-plugin--name-only nse-maven-plugin1fd5c693d5ff70dcc9fb8a6fbc5bd3f03045fa4f (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@mathieucarbou
Copy link
Copy Markdown
Owner

@hazendaz this one is good to go IMO

@mathieucarbou mathieucarbou added the is:enhancement Enhancement to an existing feature label Mar 13, 2026
@mathieucarbou mathieucarbou added the in:core MLP core module label Mar 13, 2026
@mathieucarbou mathieucarbou merged commit d352589 into master Mar 13, 2026
17 checks passed
@mathieucarbou mathieucarbou deleted the copilot/add-missing-oss-licenses branch March 13, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:core MLP core module is:enhancement Enhancement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants