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

iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new c9a3e7954 BIGTOP-4420. Fix build failure of bigtop-select on aarch64 
due to unregistered Gradle tasks. (#1347)
c9a3e7954 is described below

commit c9a3e7954f87fe81779f2eb0a225f1f52eaad0cb
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Tue May 13 07:14:17 2025 +0900

    BIGTOP-4420. Fix build failure of bigtop-select on aarch64 due to 
unregistered Gradle tasks. (#1347)
---
 packages.gradle | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/packages.gradle b/packages.gradle
index 29286653d..edbaceca7 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -221,7 +221,7 @@ task "all-components" (description: "List the components of 
the stack") doLast {
   }
 }
 
-def genTasks = { target ->
+def genTasks = { target, packaging ->
   Task t = task "${target}-download" (dependsOn: "${target}_vardefines",
       description: "Download $target artifacts",
       group: PACKAGES_GROUP) doLast {
@@ -734,13 +734,15 @@ def genTasks = { target ->
   }
   if (nativePackaging) {
     def ptype = nativePackaging.pkg
-    task "$target-pkg" (dependsOn: "$target-$ptype",
-        description: "Invoking a native binary packaging target $ptype",
-        group: PACKAGES_GROUP) doLast {
-    }
-    task "$target-spkg" (dependsOn: "$target-s$ptype",
-        description: "Invoking a native binary packaging target s$ptype",
-        group: PACKAGES_GROUP) doLast {
+    if (ptype.equals(packaging)) {
+      task "$target-pkg" (dependsOn: "$target-$ptype",
+          description: "Invoking a native binary packaging target $ptype",
+          group: PACKAGES_GROUP) doLast {
+      }
+      task "$target-spkg" (dependsOn: "$target-s$ptype",
+          description: "Invoking a native binary packaging target s$ptype",
+          group: PACKAGES_GROUP) doLast {
+      }
     }
   }
   task "$target-pkg-ind" (
@@ -889,9 +891,7 @@ project.afterEvaluate {
   doValidateBOM(config)
   config.bigtop.components.each { component_label, comp ->
     assert component_label == comp.name
-    if (!comp.packaging || 
comp.packaging.equalsIgnoreCase(nativePackaging.pkg)) {
-      genTasks(comp.name)
-    }
+    genTasks(comp.name, comp.packaging)
   }
   // Versions need to be preserved for more than just component:
   //  - there are JDK version requirement

Reply via email to