moditect icon indicating copy to clipboard operation
moditect copied to clipboard

Allow explicit exclusion of dependencies from the jdeps module path

Open aseovic opened this issue 2 years ago • 0 comments

At the moment, Moditect simply uses MavenProject.getArtifacts to determine the module path to use when invoking jdeps to create module-info. While this is generally correct behavior, there are situations when it would be useful to be able to explicitly exclude some dependencies from the module path.

For example, when generating module-info for a module that shades one or more internal dependencies without relocation, not excluding the shaded dependencies from the module path leads to superfluous "split packages" warnings, as the same classes/packages exist in both artifacts. Excluding shaded dependency eliminates those warnings.

aseovic avatar Apr 16 '22 21:04 aseovic