Skip to content

Commit

Permalink
Change in plugin configuration and order of declared modules to obtai…
Browse files Browse the repository at this point in the history
…n a fonctionning jlink image
  • Loading branch information
antoinesd committed Mar 15, 2024
1 parent 9bf0f6c commit 5b7fe10
Showing 1 changed file with 21 additions and 52 deletions.
73 changes: 21 additions & 52 deletions integrationtest/vert.x/pom.xml
Expand Up @@ -95,6 +95,8 @@
<overwriteExistingFiles>true</overwriteExistingFiles>
<failOnWarning>false</failOnWarning>
<jdepsExtraArgs>
<arg>--module-path</arg>
<arg>${project.build.directory}/modules</arg>
<arg>--ignore-missing-deps</arg>
</jdepsExtraArgs>
<modules>
Expand Down Expand Up @@ -146,28 +148,28 @@
<module>
<artifact>
<groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId>
<artifactId>netty-resolver</artifactId>
</artifact>
<moduleInfo>
<name>io.netty.codec</name>
<name>io.netty.resolver</name>
</moduleInfo>
</module>
<module>
<artifact>
<groupId>io.netty</groupId>
<artifactId>netty-resolver</artifactId>
<artifactId>netty-transport</artifactId>
</artifact>
<moduleInfo>
<name>io.netty.resolver</name>
<name>io.netty.transport</name>
</moduleInfo>
</module>
<module>
<artifact>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
<artifactId>netty-codec</artifactId>
</artifact>
<moduleInfo>
<name>io.netty.transport</name>
<name>io.netty.codec</name>
</moduleInfo>
</module>
<module>
Expand Down Expand Up @@ -212,48 +214,27 @@
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</artifact>
<!-- TODO <moduleInfo>, needs handling of native unix-common dependency -->
<moduleInfoSource>
module io.netty.channel.epoll {
requires io.netty.buffer;
requires io.netty.channel.unix;
requires io.netty.common;
requires io.netty.transport;
exports io.netty.channel.epoll;
}
</moduleInfoSource>
<moduleInfo>
<name>io.netty.channel.epoll</name>
</moduleInfo>
</module>
<module>
<artifact>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
</artifact>
<!-- TODO <moduleInfo>, needs handling of native unix-common dependency -->
<moduleInfoSource>
module io.netty.channel.kqueue {
exports io.netty.channel.kqueue;
}
</moduleInfoSource>
<moduleInfo>
<name>io.netty.channel.kqueue</name>
</moduleInfo>
</module>
<module>
<artifact>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</artifact>
<moduleInfoSource>
module io.netty.handler {
exports io.netty.handler.flow;
exports io.netty.handler.flush;
exports io.netty.handler.ipfilter;
exports io.netty.handler.logging;
exports io.netty.handler.ssl;
exports io.netty.handler.ssl.ocsp;
exports io.netty.handler.ssl.util;
exports io.netty.handler.stream;
exports io.netty.handler.timeout;
exports io.netty.handler.traffic;
}
</moduleInfoSource>
<moduleInfo>
<name>io.netty.handler</name>
</moduleInfo>
</module>
<module>
<artifact>
Expand Down Expand Up @@ -289,16 +270,6 @@
</artifact>
<moduleInfo>
<name>io.vertx.core</name>
<requires>
static log4j.api;
static log4j;
static slf4j.api;
*;
</requires>
<exports>
!*impl*;
*;
</exports>
<uses>
io.vertx.core.spi.VertxFactory;
io.vertx.core.spi.VerticleFactory;
Expand All @@ -310,12 +281,10 @@
</modules>
<module>
<mainClass>com.example.HelloWorldServer</mainClass>
<moduleInfo>
<name>com.example</name>
<exports>
com.example to io.vertx.core;
</exports>
</moduleInfo>
<moduleInfoSource>open module com.example {
requires transitive io.vertx.core;
}
</moduleInfoSource>
</module>
</configuration>
<goals>
Expand Down

0 comments on commit 5b7fe10

Please sign in to comment.