Skip to content

Commit

Permalink
[pom] Move from legacy license configuration to license sets and upda…
Browse files Browse the repository at this point in the history
…te parent-pom to 11
  • Loading branch information
hazendaz committed Aug 27, 2023
1 parent 829e75f commit d6aa233
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
16 changes: 10 additions & 6 deletions license-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>src/test/**</exclude>
<exclude>src/it/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>**/PropertyPlaceholderResolver.java</exclude>
</excludes>
<licenseSets>
<licenseSet>
<excludes>
<exclude>src/test/**</exclude>
<exclude>src/it/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>**/PropertyPlaceholderResolver.java</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
<plugin>
Expand Down
34 changes: 19 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>com.mycila</groupId>
<artifactId>mycila-pom</artifactId>
<version>10</version>
<version>11-SNAPSHOT</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -403,8 +403,10 @@
<artifactId>license-maven-plugin</artifactId>
<version>4.2</version>
<configuration>
<inlineHeader>
<![CDATA[
<licenseSets>
<licenseSet>
<inlineHeader>
<![CDATA[
Copyright (C) ${year} ${owner} (${email})
Licensed under the Apache License, Version 2.0 (the "License").
Expand All @@ -419,18 +421,20 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
]]>
</inlineHeader>
<properties>
<owner>Mycila</owner>
<year>${project.inceptionYear}-2023</year>
<email>mathieu.carbou@gmail.com</email>
</properties>
<excludes>
<exclude>src/test/resources/**</exclude>
<exclude>**/release-pom.xml</exclude>
<exclude>docs/**</exclude>
<exclude>.config/**</exclude>
</excludes>
</inlineHeader>
<properties>
<owner>Mycila</owner>
<year>${project.inceptionYear}-2023</year>
<email>mathieu.carbou@gmail.com</email>
</properties>
<excludes>
<exclude>src/test/resources/**</exclude>
<exclude>**/release-pom.xml</exclude>
<exclude>docs/**</exclude>
<exclude>.config/**</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit d6aa233

Please sign in to comment.