From b6374fd77df8f9e7d10b6f2dade6727ed2f3055b Mon Sep 17 00:00:00 2001 From: Eric Haag Date: Tue, 3 Sep 2024 20:36:01 -0500 Subject: [PATCH] Add NOTICE file and include it and LICENSE in all assembled JAR files --- build.gradle.kts | 7 +++++++ release/distribution/NOTICE | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 release/distribution/NOTICE diff --git a/build.gradle.kts b/build.gradle.kts index 5c1ded49..3a130878 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -113,6 +113,13 @@ publishing { } } +tasks.withType().configureEach { + into(".") { + from(layout.projectDirectory.file("LICENSE")) + from(layout.projectDirectory.dir("release/distribution")) + } +} + // Configuration common to all test tasks tasks.withType().configureEach { dependsOn(tasks.publish) diff --git a/release/distribution/NOTICE b/release/distribution/NOTICE new file mode 100644 index 00000000..75c0c297 --- /dev/null +++ b/release/distribution/NOTICE @@ -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.