sudip-ibm commented on code in PR #5268:
URL: https://github.com/apache/solr/pull/5268#discussion_r4439857807


##########
gradle/solr/solr-ui.gradle:
##########
@@ -133,6 +137,16 @@ tasks.register('buildUiFromSource') {
   inputs.dir(file("$rootDir/ui/shared/src"))
   inputs.dir(file("$rootDir/ui/webApp/src"))
   outputs.dir(uiFromSourceOutputDir)
+  doFirst {
+    // The source build resolves Compose Desktop's per-platform native 
libraries, which have no
+    // s390x variant. The published wasm artifact is platform independent, so 
use that instead.
+    if ("s390x".equalsIgnoreCase(System.getProperty("os.arch"))) {
+      throw new GradleException(
+          "Building the Admin UI from source is not supported on s390x; " +
+              "drop -Psolr.ui.buildFromSource=true to use the published 
artifact."
+      )
+    }

Review Comment:
   This change doesn't actually switch to the published artifact; it only 
throws an exception with a message explaining what the user should do.
   
   Currently, CI is picking up an older properties file that causes it to 
attempt building the Admin UI from source on both s390x and x86. The build 
succeeds on x86, but it isn't supported on s390x because the required native 
libraries aren't available for that architecture.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to