From 9c62f6fa4e5f54b9025ff98834851d488bed8a46 Mon Sep 17 00:00:00 2001
From: webracer999 <992620+webracer999@users.noreply.github.com>
Date: Mon, 7 Aug 2023 20:12:48 +0200
Subject: [PATCH 1/2] Create MRJAR with module-info.class
---
core/pom.xml | 40 +++++++++++++++++++++++++++++
core/src/main/java/module-info.java | 8 ++++++
2 files changed, 48 insertions(+)
create mode 100644 core/src/main/java/module-info.java
diff --git a/core/pom.xml b/core/pom.xml
index dbd6def..6c5c229 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -13,6 +13,25 @@
bundle
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ 1.8
+ 1.8
+
+
+
+ default-compile
+
+
+ module-info.java
+
+
+
+
+
org.apache.felix
maven-bundle-plugin
@@ -28,6 +47,27 @@
+
+ org.moditect
+ moditect-maven-plugin
+ 1.0.0.Final
+
+
+ add-module-info
+ package
+
+ add-module-info
+
+
+ 9
+
+ ${project.build.sourceDirectory}/module-info.java
+
+ true
+
+
+
+
diff --git a/core/src/main/java/module-info.java b/core/src/main/java/module-info.java
new file mode 100644
index 0000000..be81652
--- /dev/null
+++ b/core/src/main/java/module-info.java
@@ -0,0 +1,8 @@
+module prettytime {
+ exports org.ocpsoft.prettytime;
+ exports org.ocpsoft.prettytime.format;
+ exports org.ocpsoft.prettytime.i18n;
+ exports org.ocpsoft.prettytime.impl;
+ exports org.ocpsoft.prettytime.units;
+ provides org.ocpsoft.prettytime.PrettyTime with org.ocpsoft.prettytime.PrettyTime;
+}
\ No newline at end of file
From 25bd0b1310437e64cb3407cfddf5a5eac97952e6 Mon Sep 17 00:00:00 2001
From: webracer999 <992620+webracer999@users.noreply.github.com>
Date: Thu, 10 Aug 2023 14:10:03 +0200
Subject: [PATCH 2/2] Change module name to reverse DNS
---
core/src/main/java/module-info.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/module-info.java b/core/src/main/java/module-info.java
index be81652..f5aa8dc 100644
--- a/core/src/main/java/module-info.java
+++ b/core/src/main/java/module-info.java
@@ -1,4 +1,4 @@
-module prettytime {
+module org.ocpsoft.prettytime {
exports org.ocpsoft.prettytime;
exports org.ocpsoft.prettytime.format;
exports org.ocpsoft.prettytime.i18n;