This is an automated email from the ASF dual-hosted git repository.

roryqi pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new f72ffc5e9c [Minor] Fix web license and notice files in the binary 
release (#6958)
f72ffc5e9c is described below

commit f72ffc5e9c9c06e5bf2081fb7fd0e9b9276f19b0
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 16 11:34:23 2025 +0800

    [Minor] Fix web license and notice files in the binary release (#6958)
    
    ### 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 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", "")

Reply via email to