From cfbd7a5af29c2533b30f281b36416887c426b8b0 Mon Sep 17 00:00:00 2001 From: Sam Carlberg Date: Fri, 10 Oct 2025 15:42:02 -0400 Subject: [PATCH] [build] Fix doxygen builds on apple CPUs (#8282) Caused by the doxygen gradle plugin attempting to download 1.10.0 (presumably its default version) from artifactory because the 1.12.0 config is only applied on x86_64 platforms. Just fixing that isn't enough, however; on mac, the plugin would fail to extract the dmg. We need to fall back to a global installation on the PATH for the plugin to find, preferentially using that instead of a failed attempt to download and extract the dmg. --- docs/build.gradle | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index 423dc96cb2..0e562b4f84 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -52,12 +52,16 @@ doxygen { // See below maven and https://doxygen.nl/download.html for provided binaries // Ensure theme.css (from https://github.com/jothepro/doxygen-awesome-css) is compatible with // doxygen version when updating + executables { + doxygen { + // Note: has no effect if not on an x86_64 platform - you need to have a global install available on your + // PATH for the doxygen plugin to run + executableByVersion('1.12.0') - String arch = System.getProperty("os.arch"); - if (arch.equals("x86_64") || arch.equals("amd64")) { - executables { - doxygen { - executableByVersion('1.12.0') + String arch = System.getProperty("os.arch"); + if (!(arch.equals("x86_64") || arch.equals("amd64"))) { + // Search for a local doxygen install + executableBySearchPath('doxygen') } } }