From 132ab99b777daf2ae646c298b0f851817761d8f6 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 4 Sep 2021 01:49:53 -0300 Subject: [PATCH] Provide OSGI support #16 Added OSGi entries to `MANIFEST.MF`: ``` Bundle-ManifestVersion: 2 Bundle-Name: ulid-creator Bundle-SymbolicName: com.github.f4b6a3.ulid Bundle-Version: 4.1.0 Export-Package: com.github.f4b6a3.ulid Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" ``` The OSGi symbolic name is the same as the root package name: `com.github.f4b6a3.ulid` --- CHANGELOG.md | 11 ++++++++++- README.md | 9 +++++++-- pom.xml | 12 ++++++++++-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 236d43f..97c4d74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. Nothing unreleased. +## [4.1.0] - 2021-09-04 + +Add OSGi entries to Manifest.MF #16 + +Module and bundle names are the same as the root package name. + +The OSGi symbolic name is the same as the JPMS module name: `com.github.f4b6a3.ulid`. + ## [4.0.0] - 2021-08-08 Now you call `UlidFactory.newInstance()` and it's variants to get a new `UlidFactory`. @@ -262,7 +270,8 @@ Project created as an alternative Java implementation of [ULID spec](https://git - Added `LICENSE` - Added test cases -[unreleased]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-4.0.0...HEAD +[unreleased]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-4.1.0...HEAD +[4.1.0]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-4.0.0...ulid-creator-4.1.0 [4.0.0]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-3.2.0...ulid-creator-4.0.0 [3.2.0]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-3.1.1...ulid-creator-3.2.0 [3.1.1]: https://github.com/f4b6a3/ulid-creator/compare/ulid-creator-3.1.0...ulid-creator-3.1.1 diff --git a/README.md b/README.md index 59729f6..17b8923 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,17 @@ Add these lines to your `pom.xml`. com.github.f4b6a3 ulid-creator - 4.0.0 + 4.1.0 ``` See more options in [maven.org](https://search.maven.org/artifact/com.github.f4b6a3/ulid-creator). -Module name: `com.github.f4b6a3.ulid`. +### Modularity + +Module and bundle names are the same as the root package name. + +- JPMS module name: `com.github.f4b6a3.ulid` +- OSGi symbolic name: `com.github.f4b6a3.ulid` ### ULID diff --git a/pom.xml b/pom.xml index b05f331..2c6ce5c 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ 8 - com.github.f4b6a3.ulid + com.github.f4b6a3.ulid ${jdk.version} ${jdk.version} UTF-8 @@ -68,7 +68,15 @@ - ${module.name} + + ${package.name} + + 2 + ${project.artifactId} + ${package.name} + ${project.version} + ${package.name} + osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"