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:
Andrew Lalis 2024-01-03 10:59:45 -05:00
parent 477d5dc2c1
commit 494362dff2
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@
</developers>
<properties>
<jdk.version>8</jdk.version>
<jdk.version>11</jdk.version>
<package.name>com.github.f4b6a3.ulid</package.name>
<maven.compiler.source>${jdk.version}</maven.compiler.source>
<maven.compiler.target>${jdk.version}</maven.compiler.target>
@ -68,8 +68,6 @@
<configuration>
<archive>
<manifestEntries>
<!-- Java Modularity -->
<Automatic-Module-Name>${package.name}</Automatic-Module-Name>
<!-- OSGi Modularity -->
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>${project.artifactId}</Bundle-Name>

View File

@ -0,0 +1,3 @@
module com.github.f4b6a3.ulid {
exports com.github.f4b6a3.ulid;
}