mikaelgrev/miglayout

Support Java Platform Module System (JPMS)

Opened this issue · 6 comments

I am doing some tests with the JPMS and I noticed that MigLayout does not seem to support it at present.

Some articles that might be of help to know what should be done:

It seems that adding this to my own module-info.java makes it possible to use MigLayout:

module myapplication {
    requires miglayout.core;
    requires miglayout.javafx;
}
tbee commented

The automatic modules are ok for me, but it would be good to document the names of the modules so people can know what to put in the requires directive for each miglayout module.

I'm all for making a v6 of MigLayout which would be modularized. I haven´t myself needed modules yet though so if @tbee could do it that would be great.

tbee commented

I've created a separate branch (jpms) and started adding the module-info files; swing and javafx seem to be ok, but I'm running into troubles for swt, the native jars are not being resolved.

I can setup a branch and apply the https://github.com/moditect/moditect plugin.
It may be the case that only core, swing, and javafx may be properly modularized (full modules) while the other JARs may use just the Automatic-Module-Name manifest entry to claim their respective com.miglayout.* module name instead of the auto generated name based on the JAR file name.