Add module-info.java, increase JDK version to 11 (oldest LTS that supports JPMS), and remove Automatic-Module-Name JAR manifest entry.
This commit is contained in:
parent
477d5dc2c1
commit
494362dff2
4
pom.xml
4
pom.xml
|
@ -25,7 +25,7 @@
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jdk.version>8</jdk.version>
|
<jdk.version>11</jdk.version>
|
||||||
<package.name>com.github.f4b6a3.ulid</package.name>
|
<package.name>com.github.f4b6a3.ulid</package.name>
|
||||||
<maven.compiler.source>${jdk.version}</maven.compiler.source>
|
<maven.compiler.source>${jdk.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${jdk.version}</maven.compiler.target>
|
<maven.compiler.target>${jdk.version}</maven.compiler.target>
|
||||||
|
@ -68,8 +68,6 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<!-- Java Modularity -->
|
|
||||||
<Automatic-Module-Name>${package.name}</Automatic-Module-Name>
|
|
||||||
<!-- OSGi Modularity -->
|
<!-- OSGi Modularity -->
|
||||||
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
|
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
|
||||||
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
module com.github.f4b6a3.ulid {
|
||||||
|
exports com.github.f4b6a3.ulid;
|
||||||
|
}
|
Loading…
Reference in New Issue