Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upModularization or Automatic-Module-Name #374
Comments
This comment has been minimized.
This comment has been minimized.
Hi Mark! I see that you're helping other teams with jdk9 modules. Very nice! Any chance you can help us too? We are already publishing OSGi bundles (see #216). I guess jdk9 modules are similar? If you're busy it's fine, we can probably figure it out. |
This comment has been minimized.
This comment has been minimized.
Hello. Yes, I can certainly help. As you're already publishing OSGi bundles, you've likely already done the hard work (knowing what packages you need to export, avoiding circular dependencies, etc). I see from your main parent POM that you're producing JDK 6 bytecode. If you want to go the full modularization route, the least painful way to proceed is to start requiring JDK 9 to build the code. You'll still be only requiring JDK 6 to run the code, but anyone building from source would require JDK 9 to do so. JDK 9 has some nice features that give stronger guarantees about compatibility than previous JDK releases did. For example, if you compile the code with JDK 8, specifying Java 6 bytecode as the output, nothing actually stops you from accidentally using JDK 8 APIs. The new Depending on how you feel about using JDK 9, I can make an initial pass over the codebase to write the initial module descriptors and the required |
This comment has been minimized.
This comment has been minimized.
Yeah, looks like the libraries we depend on ( |
This comment has been minimized.
This comment has been minimized.
I don't know about |
This comment has been minimized.
This comment has been minimized.
I wrote a small Maven plugin that can give you a reasonable idea as to what needs to be done in order to modularize your projects: https://github.com/io7m/modulechaser The results for rome aren't all that enlightening (they're what we've already discussed: |
This comment has been minimized.
This comment has been minimized.
Closing this because Rome has Automatic-Module-Name since version 1.10.0 (pull request #375). |
io7m commentedDec 8, 2017
Hello!
The
rome
project already appears to be quite modular. Is there any intention to publish full JDK 9 modules? Failing that, is there any chance a new release could be pushed withAutomatic-Module-Name
entries in the jar manifests?