Skip to content

Conversation

@hanslovsky
Copy link
Member

In current master branch, the InstallArtifactMojo ignores dependencies marked as optional, while the PopulateAppMojo does not. When creating shaded and deploying into Fiji.app, it is necessary to be able to ignore optional dependencies because provided dependencies are ignored both by the PopulateAppMojo and the shade plugin (not just by the PopulateAppMojo), e.g. scijava/scripting-kotlin#6. This PR adds the property scijava.ignoreOptionalDependencies to control this behavior both in the InstallArtifactMojo and the PopulateAppMojo. I decided against simply changing PopulateAppMojo to hard-code ignoring optional dependencies (as is done in InstallArtifactMojo) because it may break some existing builds. For the same reason, PopulateAppMojo and InstallArtifactMojo have different default values for scijava.ignoreOptionalDependencies.

@hanslovsky hanslovsky force-pushed the add-switch-to-ignore-optional-dependencies branch from 7f21aa4 to 6765840 Compare March 22, 2021 01:15
@ctrueden ctrueden merged commit b2b62e7 into master Mar 30, 2021
@ctrueden ctrueden deleted the add-switch-to-ignore-optional-dependencies branch March 30, 2021 14:31
@ctrueden
Copy link
Member

Thanks a lot, @hanslovsky! Patch looks beautiful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants