Skip to content

Commit

Permalink
Add modules-info
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Apr 21, 2024
1 parent 769286a commit bf28906
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ javadoc {

tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
// module-info.java:8: warning: requires directive for an automatic module org.hamcrest
options.compilerArgs << '-Xlint:-requires-automatic'
// module-info.java:8: warning: requires transitive directive for an automatic module org.hamcrest
options.compilerArgs << '-Xlint:-requires-transitive-automatic'
options.compilerArgs << '-Werror'
options.encoding = 'UTF-8'
}
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module hamcrest.auto.matcher {
exports org.itsallcode.matcher;
exports org.itsallcode.matcher.auto;
exports org.itsallcode.matcher.config;

requires static java.sql;
requires java.logging;
requires transitive org.hamcrest;
}

0 comments on commit bf28906

Please sign in to comment.