Skip to content

Commit

Permalink
Improve documentation about Mac native dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Jun 5, 2023
1 parent 2b69cbe commit f9d3d9f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,7 @@ Native on Linux gives you extra networking options:

You need to add the following dependency in your classpath:

.Intel-based Mac
[source,xml]
----
<dependency>
Expand All @@ -1295,6 +1296,17 @@ You need to add the following dependency in your classpath:
</dependency>
----

.M1/M2 Mac
[source,xml]
----
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
<classifier>osx-aarch_64</classifier>
<!--<version>Should align with netty version that Vert.x uses</version>-->
</dependency>
----

MacOS Sierra and above are supported.

Native on BSD gives you extra networking options:
Expand Down
26 changes: 25 additions & 1 deletion src/main/asciidoc/override/hostname-resolution.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ This extension is not required as its absence does not prevent Vert.x to execute

You can use add it to your classpath to improve the integration and remove the warning.

.Intel-based Mac
[source,xml]
----
<profile>
<id>mac</id>
<id>mac-intel</id>
<activation>
<os>
<family>mac</family>
<arch>x86_64</arch>
</os>
</activation>
<dependencies>
Expand All @@ -99,3 +101,25 @@ You can use add it to your classpath to improve the integration and remove the w
</dependencies>
</profile>
----

.M1/M2 Mac
[source,xml]
----
<profile>
<id>mac-silicon</id>
<activation>
<os>
<family>mac</family>
<arch>aarch64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns-native-macos</artifactId>
<classifier>osx-aarch_64</classifier>
<!--<version>Should align with netty version that Vert.x uses</version>-->
</dependency>
</dependencies>
</profile>
----

0 comments on commit f9d3d9f

Please sign in to comment.