From fda90e452d2ded5eda293f55a5d52d688d25abb2 Mon Sep 17 00:00:00 2001 From: Jiri Peinlich Date: Tue, 2 Dec 2025 16:25:15 +0000 Subject: [PATCH] build: add JPMS Automatic-Module-Name to JAR manifest Configure the maven-jar-plugin to add an Automatic-Module-Name entry (org.locationtech.proj4j.geoapi) to the JAR manifest. This provides a stable and explicit JPMS module name for consumers using the Java module system, instead of relying on the automatically derived name based on the JAR file name. It also improves Gradle JPMS support: Gradle only puts dependencies on the module path if they either contain a module-info.class or declare an Automatic-Module-Name. Without this entry, this artifact is always kept on the classpath in modular Gradle builds and cannot be required by name from module-info.java. Signed-off-by: Jiri Peinlich --- geoapi/pom.xml | 12 ++++++++++++ pom.xml | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/geoapi/pom.xml b/geoapi/pom.xml index 90fc100..8f368b9 100644 --- a/geoapi/pom.xml +++ b/geoapi/pom.xml @@ -73,6 +73,18 @@ org.locationtech.proj4j.geoapi.spi + + + maven-jar-plugin + + + + org.locationtech.proj4j.geoapi + + + + + diff --git a/pom.xml b/pom.xml index 7382ac1..0fead49 100644 --- a/pom.xml +++ b/pom.xml @@ -111,6 +111,11 @@ maven-surefire-plugin 3.1.0 + + org.apache.maven.plugins + maven-jar-plugin + 3.4.1 +