Skip to content

Commit 07f3e38

Browse files
authored
build: add Automatic-Module-Name to zai-sdk for Java 9+ module support (#82)
1 parent 44c3ba4 commit 07f3e38

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

core/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@
188188
<artifactId>maven-surefire-plugin</artifactId>
189189
<version>2.22.2</version>
190190
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-jar-plugin</artifactId>
194+
<version>${maven-jar-plugin.version}</version>
195+
<configuration>
196+
<archive>
197+
<manifestEntries>
198+
<Implementation-Title>${project.artifactId}</Implementation-Title>
199+
<Implementation-Version>${project.version}</Implementation-Version>
200+
<Automatic-Module-Name>ai.z.openapi.sdk</Automatic-Module-Name>
201+
</manifestEntries>
202+
</archive>
203+
</configuration>
204+
</plugin>
191205
</plugins>
192206
</build>
193207
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
<groupId>org.apache.maven.plugins</groupId>
113113
<artifactId>maven-jar-plugin</artifactId>
114114
<version>${maven-jar-plugin.version}</version>
115+
<!-- Changes on this plugin should sync to core/pom.xml -->
115116
<configuration>
116117
<archive>
117118
<manifestEntries>

0 commit comments

Comments
 (0)