This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch branch-0.8
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.8 by this push:
new 949237c677 [Minor] Fix web license and notice files in the binary
release (#6957)
949237c677 is described below
commit 949237c677bb4612fcf99f77261290556977bc3a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 16 13:21:18 2025 +0800
[Minor] Fix web license and notice files in the binary release (#6957)
### What changes were proposed in this pull request?
Fix web license and notice files in the binary release to include all
web licenses and use the right files for the META-INF directory in the
war file.
### Why are the changes needed?
To comply with ASF policy - although binary releases are not official.
Fix: #N/A
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Locally by creating and inspecting a distribution.
Co-authored-by: Justin Mclean <[email protected]>
---
build.gradle.kts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/build.gradle.kts b/build.gradle.kts
index 019002c461..c9e567393b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -377,6 +377,11 @@ subprojects {
if (name == "sourcesJar") {
include("LICENSE")
include("NOTICE")
+ } else if (project.name == "web") {
+ include("web/web/LICENSE.bin")
+ rename("LICENSE.bin", "LICENSE")
+ include("web/web/NOTICE.bin")
+ rename("NOTICE.bin", "NOTICE")
} else {
include("LICENSE.bin")
rename("LICENSE.bin", "LICENSE")
@@ -615,6 +620,9 @@ tasks {
from(projectDir.file("NOTICE.bin")) { into("package") }
from(projectDir.file("README.md")) { into("package") }
from(projectDir.file("DISCLAIMER.txt")) { into("package") }
+ from(projectDir.dir("web/web/licenses")) {
into("package/web/licenses") }
+ from(projectDir.dir("web/web/LICENSE.bin")) { into("package/web") }
+ from(projectDir.dir("web/web/NOTICE.bin")) { into("package/web") }
into(outputDir)
rename { fileName ->
fileName.replace(".bin", "")