Skip to content

Commit 43e1784

Browse files
authored
Merge pull request #240 from gradle/erichaagdev/license-notice
NOTICE and LICENSE files are included in assembled JAR
2 parents 6e251e3 + 7dade91 commit 43e1784

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

pom.xml

+27
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,35 @@
148148
<version>3.6.0</version>
149149
<configuration>
150150
<filters>
151+
<filter>
152+
<artifact>com.gradle:develocity-maven-extension-adapters</artifact>
153+
<excludes>
154+
<exclude>META-INF/MANIFEST.MF</exclude>
155+
</excludes>
156+
</filter>
151157
<filter>
152158
<artifact>org.codehaus.groovy:groovy</artifact>
153159
<excludes>
160+
<exclude>META-INF/LICENSE</exclude>
161+
<exclude>META-INF/MANIFEST.MF</exclude>
162+
<exclude>META-INF/NOTICE</exclude>
163+
</excludes>
164+
</filter>
165+
<filter>
166+
<artifact>org.apache.ivy:ivy</artifact>
167+
<excludes>
168+
<exclude>META-INF/LICENSE</exclude>
154169
<exclude>META-INF/MANIFEST.MF</exclude>
170+
<exclude>META-INF/NOTICE</exclude>
155171
</excludes>
156172
</filter>
157173
</filters>
174+
<transformers>
175+
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
176+
<resource>LICENSE</resource>
177+
<file>${project.basedir}/LICENSE</file>
178+
</transformer>
179+
</transformers>
158180
</configuration>
159181
<executions>
160182
<execution>
@@ -166,6 +188,11 @@
166188
</executions>
167189
</plugin>
168190
</plugins>
191+
<resources>
192+
<resource>
193+
<directory>${project.basedir}/release/distribution</directory>
194+
</resource>
195+
</resources>
169196
</build>
170197

171198
<profiles>

release/distribution/NOTICE

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
The following copyright statements and licenses apply to various third party open
2+
source software packages (or portions thereof) that are distributed with
3+
this content.
4+
5+
TABLE OF CONTENTS
6+
=================
7+
8+
The following is a listing of the open source components detailed in this
9+
document. This list is provided for your convenience; please read further if
10+
you wish to review the copyright notice(s) and the full text of the license
11+
associated with each component.
12+
13+
14+
**SECTION 1: Apache License, V2.0**
15+
* Develocity Maven Extension Adapters
16+
* com.gradle:develocity-maven-extension-adapters
17+
* Groovy
18+
* org.codehaus.groovy:groovy
19+
* Ivy
20+
* org.apache.ivy:ivy
21+
22+
SECTION 1: Apache License, V2.0
23+
================================
24+
25+
Develocity Maven Extension Adapters
26+
-----------------------------------
27+
28+
Copyright 2024 Gradle, Inc.
29+
30+
Licensed under the Apache License, Version 2.0 (the "License");
31+
you may not use this file except in compliance with the License.
32+
You may obtain a copy of the License at
33+
34+
http://www.apache.org/licenses/LICENSE-2.0
35+
36+
Unless required by applicable law or agreed to in writing, software
37+
distributed under the License is distributed on an "AS IS" BASIS,
38+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39+
See the License for the specific language governing permissions and
40+
limitations under the License.
41+
42+
Groovy
43+
------
44+
45+
Copyright 2023 The Apache Software Foundation
46+
47+
Licensed under the Apache License, Version 2.0 (the "License");
48+
you may not use this file except in compliance with the License.
49+
You may obtain a copy of the License at
50+
51+
http://www.apache.org/licenses/LICENSE-2.0
52+
53+
Unless required by applicable law or agreed to in writing, software
54+
distributed under the License is distributed on an "AS IS" BASIS,
55+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56+
See the License for the specific language governing permissions and
57+
limitations under the License.
58+
59+
Ivy
60+
---
61+
62+
Copyright 2023 The Apache Software Foundation
63+
64+
Licensed under the Apache License, Version 2.0 (the "License");
65+
you may not use this file except in compliance with the License.
66+
You may obtain a copy of the License at
67+
68+
http://www.apache.org/licenses/LICENSE-2.0
69+
70+
Unless required by applicable law or agreed to in writing, software
71+
distributed under the License is distributed on an "AS IS" BASIS,
72+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
73+
See the License for the specific language governing permissions and
74+
limitations under the License.

0 commit comments

Comments
 (0)