Skip to content

Commit

Permalink
feat(package): Automatic-Module-Name in JAR Manifest
Browse files Browse the repository at this point in the history
Adds the possibility to use this package as an automatic module for Java 9+ consumers who utilize Java modularity

Resolves #42
  • Loading branch information
vbaidak committed Sep 27, 2024
1 parent cedef43 commit f4f8a0c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
~ limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -98,6 +99,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<freemarker.version>2.3.33</freemarker.version>
<freemarker.java8.module.name>freemarker.java8</freemarker.java8.module.name>
<cucumber.version>7.18.1</cucumber.version>
<junit.version>5.11.0</junit.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down Expand Up @@ -220,6 +222,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>${freemarker.java8.module.name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit f4f8a0c

Please sign in to comment.