This issue is to report and propose a fix for an encountered problem related to io.netty.resolver.dns.DnsServerAddressStreamProviders on macOS, specifically affecting Apple Silicon (ARM64) users.

I propose a script statement that applies only to macOS, without affecting users of other OSs.
def isAppleSilicon() {
return System.getProperty("os.name") == "Mac OS X" && System.getProperty("os.arch") == "aarch64"
}
dependencies {
implementation ...
if (isAppleSilicon()) { runtimeOnly('io.netty:netty-resolver-dns-native-macos:4.1.94.Final:osx-aarch_64') }
...