From 80b2f78eb9392b2510404657528162826679c5b0 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Sat, 25 Nov 2023 21:29:00 +0100 Subject: [PATCH] Set `java.logging` as optional module (#183) Commons Logging has a fallback simple logger that is used if the `java.util.logging` package is not present. Originally this only could happen with Java 1.3, but sinc Java 9 the user can disable the `java.logging` JPMS module. Commons Logging will work anyway. This PR slightly modifies the inherited Moditect configuration to add a `static` (i.e. optional) modifier to the `java.logging` module. --- pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pom.xml b/pom.xml index 9a66fe5..fb08a04 100644 --- a/pom.xml +++ b/pom.xml @@ -332,6 +332,26 @@ under the License. + + org.moditect + moditect-maven-plugin + + + add-module-infos + + + + + static java.logging; + *; + + + + + + + +