|
100 | 100 | <includes>
|
101 | 101 | <include>**\/*.java</include>
|
102 | 102 | </includes>
|
103 |
| - <excludes> |
104 |
| - <exclude>module-info.java</exclude> |
105 |
| - </excludes> |
106 | 103 | </resource>
|
107 | 104 | </resources>
|
108 | 105 | </configuration>
|
|
210 | 207 | <exclude>META-INF/native-image/**</exclude>
|
211 | 208 | </excludes>
|
212 | 209 | </filter>
|
| 210 | + <filter> |
| 211 | + <artifact>${groupId}:${artifactId}</artifact> |
| 212 | + <excludes> |
| 213 | + <exclude>module-info.java</exclude> |
| 214 | + </excludes> |
| 215 | + </filter> |
213 | 216 | </filters>
|
214 | 217 | <shadeTestJar>true</shadeTestJar>
|
215 | 218 | <createSourcesJar>true</createSourcesJar>
|
216 | 219 | </configuration>
|
217 | 220 | </execution>
|
218 | 221 | </executions>
|
219 | 222 | </plugin>
|
| 223 | + <plugin> |
| 224 | + <groupId>org.apache.maven.plugins</groupId> |
| 225 | + <artifactId>maven-antrun-plugin</artifactId> |
| 226 | + <executions> |
| 227 | + <execution> |
| 228 | + <id>add-module-info-to-sources</id> |
| 229 | + <phase>package</phase> |
| 230 | + <goals> |
| 231 | + <goal>run</goal> |
| 232 | + </goals> |
| 233 | + <configuration> |
| 234 | + <target> |
| 235 | + <unzip src="${project.build.directory}/${artifactId}-${version}-sources.jar" dest="${project.build.directory}/sources-with-module"/> |
| 236 | + <copy file="${project.basedir}/src/main/jpms/module-info.java" tofile="${project.build.directory}/sources-with-module/module-info.java" /> |
| 237 | + <zip basedir="${project.build.directory}/sources-with-module" destfile="${project.build.directory}/${artifactId}-${version}-sources.jar"/> |
| 238 | + </target> |
| 239 | + </configuration> |
| 240 | + </execution> |
| 241 | + </executions> |
| 242 | + </plugin> |
220 | 243 | <plugin>
|
221 | 244 | <groupId>org.moditect</groupId>
|
222 | 245 | <artifactId>moditect-maven-plugin</artifactId>
|
|
230 | 253 | <configuration>
|
231 | 254 | <overwriteExistingFiles>true</overwriteExistingFiles>
|
232 | 255 | <module>
|
233 |
| - <moduleInfoSource><![CDATA[ |
234 |
| - module org.neo4j.driver { |
235 |
| - exports org.neo4j.driver; |
236 |
| - exports org.neo4j.driver.async; |
237 |
| - exports org.neo4j.driver.reactive; |
238 |
| - exports org.neo4j.driver.reactivestreams; |
239 |
| - exports org.neo4j.driver.types; |
240 |
| - exports org.neo4j.driver.summary; |
241 |
| - exports org.neo4j.driver.net; |
242 |
| - exports org.neo4j.driver.util; |
243 |
| - exports org.neo4j.driver.exceptions; |
244 |
| -
|
245 |
| - requires transitive java.logging; |
246 |
| - requires transitive org.reactivestreams; |
247 |
| - requires static micrometer.core; |
248 |
| - requires static org.graalvm.sdk; |
249 |
| - requires static org.slf4j; |
250 |
| - requires static java.management; |
251 |
| - } |
252 |
| - ]]></moduleInfoSource> |
| 256 | + <moduleInfoFile> |
| 257 | + ${basedir}/src/main/jpms/module-info.java |
| 258 | + </moduleInfoFile> |
253 | 259 | </module>
|
254 | 260 | </configuration>
|
255 | 261 | </execution>
|
|
0 commit comments