This is an automated email from the ASF dual-hosted git repository. danny0405 pushed a commit to branch branch-1.22 in repository https://gitbox.apache.org/repos/asf/calcite.git
commit 9148ce92df012396a5e9a22453a2680a7df8f413 Author: yuzhao.cyz <[email protected]> AuthorDate: Wed Feb 26 13:08:12 2020 +0800 [CALCITE-3822] Source distribution must not contain fonts under SIL OFL 1.1 license (category B) (cherry picked from commit 134430e481bb5495d0852434041428104e29874e) --- release/build.gradle.kts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/release/build.gradle.kts b/release/build.gradle.kts index ef0d935..39a70f4 100644 --- a/release/build.gradle.kts +++ b/release/build.gradle.kts @@ -115,7 +115,6 @@ val getLicenses by tasks.registering(GatherLicenseTask::class) { // Parts of the web site generated by Jekyll (http://jekyllrb.com/) addDependency(":jekyll:", SpdxLicense.MIT) addDependency("font-awesome:font-awesome-code:4.2.0", SpdxLicense.MIT) - addDependency("font-awesome:font-awesome-font:4.2.0", SpdxLicense.OFL_1_1) // git.io/normalize addDependency(":normalize:3.0.2", SpdxLicense.MIT) // Gridism: A simple, responsive, and handy CSS grid by @cobyism @@ -143,6 +142,20 @@ fun CopySpec.excludeLicenseFromSourceRelease() { exclude("LICENSE") } +fun CopySpec.excludeCategoryBLicensedWorksFromSourceRelease() { + // The source distribution contains "font-awesome:fonts" which is licensed as + // http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License). + // + // OFL 1.1 is "category B" (see LEGAL-112). + // + // According to + // https://www.apache.org/legal/resolved.html#binary-only-inclusion-condition, + // the source code can not include Category B licensed works. + + // We need to remove "web and desktop font files". + exclude("site/fonts/**") +} + fun CrLfSpec.sourceLayout() = copySpec { duplicatesStrategy = DuplicatesStrategy.EXCLUDE gitattributes(gitProps) @@ -154,6 +167,7 @@ fun CrLfSpec.sourceLayout() = copySpec { from(rootDir) { gitignore(gitProps) excludeLicenseFromSourceRelease() + excludeCategoryBLicensedWorksFromSourceRelease() } } }
