Commit fda90e4
committed
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 <jiri.peinlich@gmail.com>1 parent 3a5a269 commit fda90e4
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
0 commit comments