Skip to content

Commit b6374fd

Browse files
committed
Add NOTICE file and include it and LICENSE in all assembled JAR files
1 parent 2274879 commit b6374fd

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

build.gradle.kts

+7
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ publishing {
113113
}
114114
}
115115

116+
tasks.withType<Jar>().configureEach {
117+
into(".") {
118+
from(layout.projectDirectory.file("LICENSE"))
119+
from(layout.projectDirectory.dir("release/distribution"))
120+
}
121+
}
122+
116123
// Configuration common to all test tasks
117124
tasks.withType<Test>().configureEach {
118125
dependsOn(tasks.publish)

release/distribution/NOTICE

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
* Google Guava
16+
* com.google.guava:guava
17+
18+
SECTION 1: Apache License, V2.0
19+
===============================
20+
21+
Google Guava
22+
------------
23+
Copyright 2024 Google, Inc.
24+
25+
Licensed under the Apache License, Version 2.0 (the "License");
26+
you may not use this file except in compliance with the License.
27+
You may obtain a copy of the License at
28+
29+
http://www.apache.org/licenses/LICENSE-2.0
30+
31+
Unless required by applicable law or agreed to in writing, software
32+
distributed under the License is distributed on an "AS IS" BASIS,
33+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34+
See the License for the specific language governing permissions and
35+
limitations under the License.

0 commit comments

Comments
 (0)