Skip to content

Allow explicit exclusion of dependencies from the jdeps module path #169

@aseovic

Description

@aseovic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedIssue has been released

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions