This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 12f680c040 [Minor] Fix web license and notice files in the binary
release (#6955)
12f680c040 is described below
commit 12f680c040adb9664008452c560a41a1990a7680
Author: Justin Mclean <[email protected]>
AuthorDate: Wed Apr 16 10:04:10 2025 +0800
[Minor] Fix web license and notice files in the binary release (#6955)
### 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.
---
build.gradle.kts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/build.gradle.kts b/build.gradle.kts
index 6c2428f2b1..5798375884 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -387,6 +387,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")
@@ -633,6 +638,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", "")