I have a java program which uses jsoup and flying saucer. I want to get the minimum modules that are needed to create a custom JRE using jlink. I tried to get the details of the modules using jdeps but jdeps only returning the standard java modules( ex : java.base, java.logging etc..) and returning not found for the classes used from jsoup and flying saucer.
I tried linking classpath with this command :
jdeps -cp '<path to lib files>/lib/*' -s -recursive myJar.jar
Still getting same output. It is just a CLI project and not used maven. Can someone let me know how to get the module details to create the minimum JRE.