Closed obfischer closed 2 months ago
It looks like the module-info class is missing from all 4.7.6 jars except the main picocli jar...
If you have a version of branch with a fix, I would be happy to test it. Currently I have some problems getting in working with jlink and my custom module infor descriptor.
The missing module declaration leads to some warnings during the build
[INFO] --- compiler:3.13.0:compile (default-compile) @ foobar ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 4 source files with javac [debug parameters release 22 module-path] to target/classes
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[12,32] Modul nicht gefunden: picocli.spring.boot.starter
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[16,32] Modul nicht gefunden: picocli.spring.boot.starter
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[12,32] Modul nicht gefunden: picocli.spring.boot.starter
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[16,32] Modul nicht gefunden: picocli.spring.boot.starter
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[12,32] Modul nicht gefunden: picocli.spring.boot.starter
[WARNING] /Users/obf/code/cgm/his-cli.d/initial-structure/cli/foobar/src/main/java/module-info.java:[16,32] Modul nicht gefunden: picocli.spring.boot.starter
Just for your information
Fixed in the main branch.
Hi @remkop, I will test it today. Haven't had the time before
@obfischer I appreciate you taking the time to help with this! 🙏
@remkop I added to each of my Maven modules a module-info.java
and not it works like a charm. Looking forward to a release.
The module info for picocli`s module info descriptor, which is present in the Git repository, is not included in the resulting released jar. I checked this for serveral versions.
Here is the output of the jar tool listing the content of the jar
Please include the descriptor in the release. Thank you for all the work you do!
Relates to #1608