[build] Move licenses for shaded dependencies into the NOTICE file In accordance with the Apache Software License 2.0, the NOTICE file is the dedicated/prefered place for any additional license information that affects redistribution, because the NOTICE file is required to be included in any redistribution.
The only project still having shaded dependencies that require extra license statements is flink-table. Changing the licenses to be in the NOTICE file also allows removing the maven-resource plugin from the root pom.xml Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/558a0b44 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/558a0b44 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/558a0b44 Branch: refs/heads/master Commit: 558a0b44266994cb07890c2c8f09644d519a1282 Parents: a76de28 Author: Stephan Ewen <[email protected]> Authored: Sun Oct 15 01:07:48 2017 +0200 Committer: Stephan Ewen <[email protected]> Committed: Sun Oct 15 19:08:11 2017 +0200 ---------------------------------------------------------------------- .../packaged_licenses/LICENSE.janino.txt | 31 ---------- .../packaged_licenses/LICENSE.reflections.txt | 14 ----- .../src/main/resources/META-INF/NOTICE | 64 ++++++++++++++++++++ pom.xml | 28 --------- 4 files changed, 64 insertions(+), 73 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/558a0b44/flink-libraries/flink-table/packaged_licenses/LICENSE.janino.txt ---------------------------------------------------------------------- diff --git a/flink-libraries/flink-table/packaged_licenses/LICENSE.janino.txt b/flink-libraries/flink-table/packaged_licenses/LICENSE.janino.txt deleted file mode 100644 index ef871e2..0000000 --- a/flink-libraries/flink-table/packaged_licenses/LICENSE.janino.txt +++ /dev/null @@ -1,31 +0,0 @@ -Janino - An embedded Java[TM] compiler - -Copyright (c) 2001-2016, Arno Unkrig -Copyright (c) 2015-2016 TIBCO Software Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - 3. Neither the name of JANINO nor the names of its contributors - may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. http://git-wip-us.apache.org/repos/asf/flink/blob/558a0b44/flink-libraries/flink-table/packaged_licenses/LICENSE.reflections.txt ---------------------------------------------------------------------- diff --git a/flink-libraries/flink-table/packaged_licenses/LICENSE.reflections.txt b/flink-libraries/flink-table/packaged_licenses/LICENSE.reflections.txt deleted file mode 100644 index 236d111..0000000 --- a/flink-libraries/flink-table/packaged_licenses/LICENSE.reflections.txt +++ /dev/null @@ -1,14 +0,0 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 2, December 2004 - - Copyright (C) 2004 Sam Hocevar <[email protected]> - - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flink/blob/558a0b44/flink-libraries/flink-table/src/main/resources/META-INF/NOTICE ---------------------------------------------------------------------- diff --git a/flink-libraries/flink-table/src/main/resources/META-INF/NOTICE b/flink-libraries/flink-table/src/main/resources/META-INF/NOTICE new file mode 100644 index 0000000..bfe2737 --- /dev/null +++ b/flink-libraries/flink-table/src/main/resources/META-INF/NOTICE @@ -0,0 +1,64 @@ +=========================================================== + NOTICE corresponding to the section 4d of + The Apache License, Version 2.0, for + flink-table +=========================================================== + +The 'flink-table' module bundles certain dependencies into +the binary release artifacts. +Below are the license statements where required by the license. + +Janino version (org.codehaus.janino : janino) v. 3.0.7 +under the following license: + + Janino - An embedded Java[TM] compiler + + Copyright (c) 2001-2016, Arno Unkrig + Copyright (c) 2015-2016 TIBCO Software Inc. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + 3. Neither the name of JANINO nor the names of its contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +Reflections (org.reflections : reflections) v. 0.9.10 +under the following license: + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar <[email protected]> + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flink/blob/558a0b44/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 52ead11..86cdf72 100644 --- a/pom.xml +++ b/pom.xml @@ -1207,34 +1207,6 @@ under the License. </executions> </plugin> - <!-- make sure all licenses that need to be repackaged are in the target folder --> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <configuration> - <encoding>UTF-8</encoding> - </configuration> - <executions> - <execution> - <id>copy-packaged-licenses</id> - <phase>prepare-package</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}/target/classes/META-INF/licenses/</outputDirectory> - <resources> - <resource> - <directory>${basedir}/packaged_licenses</directory> - <includes> - <include>LICENSE.*.txt</include> - </includes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - <!-- We use shading in all packages for relocating some classes, such as Guava and ASM. By doing so, users adding Flink as a dependency won't run into conflicts.
