From bf289063e0e60dccbada7979debbaae8277d46f4 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sun, 21 Apr 2024 17:17:08 +0200 Subject: [PATCH] Add modules-info --- build.gradle | 4 ++++ src/main/java/module-info.java | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/main/java/module-info.java diff --git a/build.gradle b/build.gradle index 5cb702e..07c30bd 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..835a4af --- /dev/null +++ b/src/main/java/module-info.java @@ -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; +}