Skip to content

Commit

Permalink
Add Automatic-Module-Name attribute to jar manifests for better Java …
Browse files Browse the repository at this point in the history
…9+ JPMS compatibility. Affects: db-scheduler and db-scheduler-boot-starter
  • Loading branch information
peter277 committed Apr 6, 2024
1 parent 823c9d2 commit 882c45f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db-scheduler-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,20 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>com.github.kagkarlsson.scheduler.boot</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
9 changes: 9 additions & 0 deletions db-scheduler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Automatic-Module-Name>com.github.kagkarlsson.scheduler</Automatic-Module-Name>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 882c45f

Please sign in to comment.