File tree Expand file tree Collapse file tree
gradle-palantir-java-format/src/main/java/com/palantir/javaformat/gradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717package com .palantir .javaformat .gradle ;
1818
19- import com .palantir .platform .Architecture ;
2019import com .palantir .platform .GradleOperatingSystem ;
2120import com .palantir .platform .OperatingSystem ;
2221import javax .inject .Inject ;
@@ -35,11 +34,15 @@ public boolean isNativeImageConfigured() {
3534 return isNativeFlagEnabled () && isNativeImageSupported ();
3635 }
3736
37+ /**
38+ * The platforms a native image is published for, and therefore the only ones where it can be
39+ * resolved. macOS is supported on both architectures: the x86-64 image used to be excluded
40+ * because nobody built it, and .github/workflows/ci.yml now does. Windows and musl are still
41+ * absent for the same reason — no job produces them.
42+ */
3843 private boolean isNativeImageSupported () {
3944 return getOs ().getOperatingSystem ()
40- .map (os -> os .equals (OperatingSystem .LINUX_GLIBC )
41- || (os .equals (OperatingSystem .MACOS )
42- && Architecture .get ().equals (Architecture .AARCH64 )))
45+ .map (os -> os .equals (OperatingSystem .LINUX_GLIBC ) || os .equals (OperatingSystem .MACOS ))
4346 .get ();
4447 }
4548
You can’t perform that action at this time.
0 commit comments