Skip to content

Commit

Permalink
Add missing java.sql require (#1999)
Browse files Browse the repository at this point in the history
* Add missing java.sql

* Update maven checkstyle

* Fix gradle checkstyle

* Bump surefire plugin

* Skip modules in tests
  • Loading branch information
bowbahdoe authored Apr 30, 2024
1 parent 761b45b commit df48c4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ tasks.withType(Checkstyle).configureEach {
xml.required = false
html.required = true
}
excludes = [ "**/module-info.java" ]
}

tasks.register('renderRR') {
Expand Down
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.3</version>
<version>3.2.5</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
<!-- AlterViewTest does deep reflection -->
<useModulePath>false</useModulePath>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -555,6 +557,7 @@
<logViolationsToConsole>true</logViolationsToConsole>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
<excludes>**/module-info.java</excludes>
<checkstyleRules>
<module name="Checker">
<module name="SuppressWarningsFilter" />
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* #L%
*/
module net.sf.jsqlparser {
requires java.sql;

exports net.sf.jsqlparser;
exports net.sf.jsqlparser.expression;
exports net.sf.jsqlparser.expression.operators.arithmetic;
Expand Down

0 comments on commit df48c4b

Please sign in to comment.