morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Modularize the Jar

Open evanchooly opened this issue 5 years ago • 7 comments

Hopefully self-explanatory.

evanchooly avatar Oct 01 '20 16:10 evanchooly

May be it is easier to set the Automatic-Module-Name: <module name> in the manifest.mf first. This could be done with:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <configuration>
    <archive>
      <manifestEntries>
        <Automatic-Module-Name>dev.morphia</Automatic-Module-Name>
      </manifestEntries>
    </archive>
  </configuration>
</plugin>

This would help a lot.

BlackReloaded avatar May 12 '21 06:05 BlackReloaded

Not sure this addresses the issue I have: I have a small library with the data model which is shared between a server and Android application. For the Android application to work I just need the morphia annotations, but since they are built for JDK 11 this is no longer possible since Android only works with JDK8. Would it be possible to separate the annotations into a separate library with a lower JDK requirement? Shall I fill in a separate issue?

davidribeirofhp avatar Aug 10 '21 15:08 davidribeirofhp

having a mix of the new driver code and the legacy code makes the module system sad. when I can remove the deprecations this should improve. bumping to 3.0.

evanchooly avatar Jun 25 '22 03:06 evanchooly

preserve these WIPs for reference

core module-info.java.txt kotlin module-info.java.txt

evanchooly avatar Jun 25 '22 03:06 evanchooly

@evanchooly Are there any updates on this you can share?

QuigonJohnn avatar Aug 02 '23 01:08 QuigonJohnn

The goal is to have 3.0 modularized. Past efforts haven't gone well because some deps haven't been modularized yet but i'm going to push through and that resolved, hopefully, one way or the other by 3.0.

evanchooly avatar Aug 02 '23 16:08 evanchooly

Thanks for the reply. I'm in the same boat with some work I'm doing, so I understand at least a little of the pain. Good luck with it all though. I'll be keping an eye out for 3.0.

QuigonJohnn avatar Aug 07 '23 03:08 QuigonJohnn