From 8b3e98163dd580518e7507a0cdfdaa24950ecc71 Mon Sep 17 00:00:00 2001 From: Dmitriy Dumanskiy Date: Wed, 13 Dec 2017 19:20:37 +0200 Subject: [PATCH] Added Automatic-Module-Name for native modules to support Java 9 modules Motivation: Latest netty missing predefined Automatic-Module-Name module name entry in MANIFEST.MF for native transports. Modification: Added Automatic-Module-Name entry to manifest during native transports build. Fixes [#7501] --- transport-native-epoll/pom.xml | 1 + transport-native-kqueue/pom.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index 98f8af5a37..c6c6193dac 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -181,6 +181,7 @@ META-INF/native/libnetty_transport_native_epoll_${os.detected.arch}.so; osname=Linux; processor=${os.detected.arch},* + ${javaModuleName} true ${project.build.outputDirectory}/META-INF/MANIFEST.MF diff --git a/transport-native-kqueue/pom.xml b/transport-native-kqueue/pom.xml index 7205ff89f9..f9370cb63e 100644 --- a/transport-native-kqueue/pom.xml +++ b/transport-native-kqueue/pom.xml @@ -111,6 +111,7 @@ META-INF/native/libnetty_transport_native_kqueue_${os.detected.arch}.jnilib; osname=MacOSX, processor=${os.detected.arch}" + ${javaModuleName} true ${project.build.outputDirectory}/META-INF/MANIFEST.MF