Skip to content

Commit cfd7086

Browse files
fix: added an automatic module name (#362) (#363)
* fix: added an automatic module name (#362) Signed-off-by: Adam Roberts <[email protected]> * derive module name Signed-off-by: Kavindu Dodanduwa <[email protected]> --------- Signed-off-by: Adam Roberts <[email protected]> Signed-off-by: Kavindu Dodanduwa <[email protected]> Co-authored-by: Kavindu Dodanduwa <[email protected]>
1 parent 996cbd8 commit cfd7086

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<junit.jupiter.version>5.9.2</junit.jupiter.version>
1414
<!-- exclusion expression for integration tests -->
1515
<testExclusions>**/integration/*.java</testExclusions>
16+
<module-name>${groupId}.${artifactId}</module-name>
1617
</properties>
1718

1819
<name>OpenFeature Java SDK</name>
@@ -349,6 +350,18 @@
349350
</plugin>
350351
<!-- End publish to maven central -->
351352

353+
<plugin>
354+
<groupId>org.apache.maven.plugins</groupId>
355+
<artifactId>maven-jar-plugin</artifactId>
356+
<version>3.3.0</version>
357+
<configuration>
358+
<archive>
359+
<manifestEntries>
360+
<Automatic-Module-Name>${module-name}</Automatic-Module-Name>
361+
</manifestEntries>
362+
</archive>
363+
</configuration>
364+
</plugin>
352365
<!-- Begin source & javadocs being generated -->
353366
<plugin>
354367
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)