Skip to content

Commit 473e997

Browse files
committed
Make it easier to extend license.excludes
We use an analogous tactic to the one used for allowedDuplicateClasses in pom-scijava. In this way, if the scijava.excludedLicensePatterns change in the future, downstream POMs will not need to replicate those changes, but rather can just use ${scijava.excludedLicensePatterns} plus additional comma-separated rules.
1 parent ece4672 commit 473e997

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,14 @@
152152
Files excluded from license header updates.
153153
By default, all script templates are excluded.
154154
-->
155-
<license.excludes>**/script_templates/**</license.excludes>
155+
<scijava.excludedLicensePatterns>**/script_templates/**</scijava.excludedLicensePatterns>
156+
<!--
157+
NB: The scijava.excludedLicensePatterns property above makes it easier to
158+
append to the list of excluded license patterns in downstream projects.
159+
Override the license.excludes property in your POM with something like this:
160+
<license.excludes>${scijava.excludedLicensePatterns},**/*.json,**/*.xml</license.excludes>
161+
-->
162+
<license.excludes>${scijava.excludedLicensePatterns}</license.excludes>
156163

157164
<!-- Project blurb to use in license headers atop each file. -->
158165
<license.projectName>${project.description}</license.projectName>

0 commit comments

Comments
 (0)