Add notice and license to jar

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
This commit is contained in:
tobi5775
2023-02-09 15:27:22 +01:00
committed by GitHub
parent 4f61cd6928
commit 864617f198
2 changed files with 15 additions and 0 deletions

5
NOTICE.txt Normal file
View File

@@ -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
pom.xml
View File

@@ -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>