Skip to content

Commit 096635c

Browse files
authored
Fixes #16 by adding ModiTect to generate a full Java module descriptor (#36)
Signed-off-by: Andres Almiray <aalmiray@gmail.com>
1 parent 9405bcc commit 096635c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,36 @@
194194
</archive>
195195
</configuration>
196196
</plugin>
197+
<plugin>
198+
<groupId>org.moditect</groupId>
199+
<artifactId>moditect-maven-plugin</artifactId>
200+
<version>1.0.0.RC3</version>
201+
<executions>
202+
<execution>
203+
<id>add-module-infos</id>
204+
<phase>package</phase>
205+
<goals>
206+
<goal>add-module-info</goal>
207+
</goals>
208+
<configuration>
209+
<jvmVersion>9</jvmVersion>
210+
<overwriteExistingFiles>true</overwriteExistingFiles>
211+
<module>
212+
<moduleInfo>
213+
<name>dev.cdevents</name>
214+
<!-- export everything -->
215+
<exports>*;</exports>
216+
<!-- declare services consumed by the artifact -->
217+
<addServiceUses>true</addServiceUses>
218+
</moduleInfo>
219+
</module>
220+
<jdepsExtraArgs>
221+
<arg>--multi-release=9</arg>
222+
</jdepsExtraArgs>
223+
</configuration>
224+
</execution>
225+
</executions>
226+
</plugin>
197227
</plugins>
198228
</build>
199229

0 commit comments

Comments
 (0)