Skip to content

Commit a309931

Browse files
authored
Merge pull request stleary#761 from bowbahdoe/master
Add module-info
2 parents 6409336 + 50dfcc5 commit a309931

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

‎pom.xml‎

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,35 @@
159159
<autoReleaseAfterClose>false</autoReleaseAfterClose>
160160
</configuration>
161161
</plugin>
162+
<plugin>
163+
<groupId>org.moditect</groupId>
164+
<artifactId>moditect-maven-plugin</artifactId>
165+
<version>1.0.0.Final</version>
166+
<executions>
167+
<execution>
168+
<id>add-module-infos</id>
169+
<phase>package</phase>
170+
<goals>
171+
<goal>add-module-info</goal>
172+
</goals>
173+
<configuration>
174+
<jvmVersion>9</jvmVersion>
175+
<module>
176+
<moduleInfo>
177+
<name>org.json</name>
178+
<exports>
179+
org.json;
180+
</exports>
181+
</moduleInfo>
182+
</module>
183+
</configuration>
184+
</execution>
185+
</executions>
186+
</plugin>
162187
<plugin>
163188
<groupId>org.apache.maven.plugins</groupId>
164189
<artifactId>maven-jar-plugin</artifactId>
165190
<version>3.2.0</version>
166-
<configuration>
167-
<archive>
168-
<manifestEntries>
169-
<Automatic-Module-Name>org.json</Automatic-Module-Name>
170-
</manifestEntries>
171-
</archive>
172-
</configuration>
173191
</plugin>
174192
</plugins>
175193
</build>

0 commit comments

Comments
 (0)