Skip to content

Commit 82204a7

Browse files
committed
Add NOTICE file and include it and LICENSE in all assembled JAR files
1 parent b93bd7d commit 82204a7

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

build.gradle.kts

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ tasks.shadowJar {
4747
archiveClassifier = ""
4848
}
4949

50+
tasks.withType<Jar>().configureEach {
51+
into(".") {
52+
from(layout.projectDirectory.file("LICENSE"))
53+
from(layout.projectDirectory.dir("release/distribution"))
54+
}
55+
}
56+
5057
gradlePlugin {
5158
website = "https://github.com/gradle/common-custom-user-data-gradle-plugin"
5259
vcsUrl = "https://github.com/gradle/common-custom-user-data-gradle-plugin.git"

release/distribution/NOTICE

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

0 commit comments

Comments
 (0)