Skip to content

Commit 88b7114

Browse files
committed
fix: add java.sql as optional dependency to Moditect
1 parent 7d1692c commit 88b7114

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

pom.xml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,9 @@
452452
</build>
453453
</profile>
454454

455+
<!-- Profile inherited from `commmons-parent` -->
455456
<profile>
456-
<id>java9+</id>
457+
<id>java-9-up</id>
457458
<activation>
458459
<jdk>[9,)</jdk>
459460
</activation>
@@ -462,6 +463,32 @@
462463
<!-- LANG-1667: allow tests to access private fields/methods of java.base/java.util such as ArrayList via reflection -->
463464
<argLine>-Xmx512m --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.time.chrono=ALL-UNNAMED</argLine>
464465
</properties>
466+
<build>
467+
<plugins>
468+
<!--
469+
~ Modifies the inherited Moditect configuration to add `java.sql` as `static` (optional) dependency.
470+
-->
471+
<plugin>
472+
<groupId>org.moditect</groupId>
473+
<artifactId>moditect-maven-plugin</artifactId>
474+
<executions>
475+
<execution>
476+
<id>add-module-infos</id>
477+
<configuration>
478+
<module>
479+
<moduleInfo>
480+
<requires>
481+
static java.sql;
482+
*;
483+
</requires>
484+
</moduleInfo>
485+
</module>
486+
</configuration>
487+
</execution>
488+
</executions>
489+
</plugin>
490+
</plugins>
491+
</build>
465492
</profile>
466493
<profile>
467494
<id>java15</id>

0 commit comments

Comments
 (0)