Skip to content

Commit

Permalink
Add explicit automatic module names
Browse files Browse the repository at this point in the history
Baby steps toward Java Modules.

Fixes quarkusio#25795.
  • Loading branch information
benkard committed Nov 20, 2022
1 parent b3f787e commit 9876f24
Show file tree
Hide file tree
Showing 15 changed files with 214 additions and 2 deletions.
11 changes: 11 additions & 0 deletions extensions/security/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.security.deployment</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
13 changes: 12 additions & 1 deletion extensions/security/runtime-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.security.spi.runtime</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
</project>
15 changes: 15 additions & 0 deletions extensions/security/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

<build>
<plugins>

<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-extension-maven-plugin</artifactId>
Expand All @@ -62,6 +63,7 @@
</capabilities>
</configuration>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
Expand All @@ -74,6 +76,19 @@
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<!-- io.quarkus.security is taken by io.quarkus.security:quarkus-security. -->
<Automatic-Module-Name>io.quarkus.security.runtime</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions extensions/security/test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,18 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.security.test.utils</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
17 changes: 16 additions & 1 deletion independent-projects/resteasy-reactive/build-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,20 @@
</dependency>

</dependencies>


<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.build.support</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/client/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.client.processor</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/client/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.client</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/common/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.common.processor</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/common/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.common</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/common/types/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.common.types</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/server/jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.jackson</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/server/jsonb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.jsonb</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
15 changes: 15 additions & 0 deletions independent-projects/resteasy-reactive/server/processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@

</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.processor</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
Expand Down
13 changes: 13 additions & 0 deletions independent-projects/resteasy-reactive/server/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,23 @@

<build>
<plugins>

<plugin>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</build>

Expand Down
13 changes: 13 additions & 0 deletions independent-projects/resteasy-reactive/server/vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,23 @@

<build>
<plugins>

<plugin>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-maven-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>io.quarkus.resteasy.reactive.vertx</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit 9876f24

Please sign in to comment.