From 6a057ff63cf9275fa437d9b408ffd7b9c854d0cc Mon Sep 17 00:00:00 2001 From: ascopes <73482956+ascopes@users.noreply.github.com> Date: Tue, 18 Apr 2023 15:13:20 -0700 Subject: [PATCH] Add Automatic-Module-Name to JAR to provide JDK-9 support. Any builds on JDK-9 or newer that use modules and have this dependency will currently produce a warning: Required filename-based automodules detected: [jimfs-1.2.jar]. Please don't publish this project to a public artifact repository! This should address that issue. For all other purposes this JAR appears to work fine in Java 9 and newer (I am currently using it for a JDK-17-based project). Fixes #180 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/jimfs/pull/180 from ascopes:task/java9-module-support eec44a27d4cb2d1c56f33bed9f93ac41553aebbc PiperOrigin-RevId: 525264585 --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 628c7ed9..bd14c680 100644 --- a/pom.xml +++ b/pom.xml @@ -238,6 +238,18 @@ + + + org.apache.maven.plugins + maven-jar-plugin + + + + com.google.common.jimfs + + + +