Skip to content

Commit c6f32c0

Browse files
committed
Add LICENSE.txt and NOTICE.txt to META-INF directory of generated JARs.
1 parent 957b88f commit c6f32c0

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Add LICENSE.txt and NOTICE.txt to META-INF directory of generated JARs"
6+
}

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,25 @@
286286
</sources>
287287
</configuration>
288288
</execution>
289+
<execution>
290+
<id>add-license-notice</id>
291+
<phase>generate-sources</phase>
292+
<goals>
293+
<goal>add-resource</goal>
294+
</goals>
295+
<configuration>
296+
<resources>
297+
<resource>
298+
<directory>${maven.multiModuleProjectDirectory}</directory>
299+
<includes>
300+
<include>LICENSE.txt</include>
301+
<include>NOTICE.txt</include>
302+
</includes>
303+
<targetPath>META-INF</targetPath>
304+
</resource>
305+
</resources>
306+
</configuration>
307+
</execution>
289308
</executions>
290309
</plugin>
291310
<plugin>

0 commit comments

Comments
 (0)