Skip to content

Commit

Permalink
Add notice and license to jar
Browse files Browse the repository at this point in the history
In many other Spring and Spring Boot projects, the license and notice files are included in the jar file under META-INF. 
In this Spring project, the two files should also be added to the jar.

* add notice and license to jar
* Update NOTICE.txt
  • Loading branch information
tobi5775 authored Feb 9, 2023
1 parent 4f61cd6 commit 864617f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright (c) 2006-2023 the original author or authors.

This product is licensed to you under the Apache License, Version 2.0
(the "License"). You may not use this product except in compliance with
the License.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@
</dependencies>

<build>
<resources>
<resource>
<directory>.</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>LICENSE-2.0.txt</include>
<include>NOTICE.txt</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
Expand Down

0 comments on commit 864617f

Please sign in to comment.