Skip to content

Commit

Permalink
NOTICE file is added and included in all assembled JAR files along wi…
Browse files Browse the repository at this point in the history
…th LICENSE (#750)

This PR adds a NOTICE file to the root of the project. The NOTICE file
includes the licenses of all runtime dependencies.

Both the NOTICE and LICENSE files are then included in all assembled JAR
files.
  • Loading branch information
erichaagdev authored Sep 4, 2024
2 parents 2274879 + b6374fd commit c1b007e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ publishing {
}
}

tasks.withType<Jar>().configureEach {
into(".") {
from(layout.projectDirectory.file("LICENSE"))
from(layout.projectDirectory.dir("release/distribution"))
}
}

// Configuration common to all test tasks
tasks.withType<Test>().configureEach {
dependsOn(tasks.publish)
Expand Down
35 changes: 35 additions & 0 deletions release/distribution/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
The following copyright statements and licenses apply to various third party open
source software packages (or portions thereof) that are distributed with
this content.

TABLE OF CONTENTS
=================

The following is a listing of the open source components detailed in this
document. This list is provided for your convenience; please read further if
you wish to review the copyright notice(s) and the full text of the license
associated with each component.


**SECTION 1: Apache License, V2.0**
* Google Guava
* com.google.guava:guava

SECTION 1: Apache License, V2.0
===============================

Google Guava
------------
Copyright 2024 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0 comments on commit c1b007e

Please # to comment.