Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit removed Java modules from detected jlinkModules #1374

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

nigredo-tori
Copy link
Collaborator

We're already skipping detection for some Jakarta modules that have legacy java.* names. However, there is another source of information - the release notes for Java 11 have a list of all removed modules. This PR filters these out as well. Although there is some overlap, I've opted to keep the lists from two sources separate, since the modules are filtered out for different reasons.

Regarding compatibility, this shouldn't impact most builds that use Java 11 and later. For such a build the removed modules could only have come from Jakarta artifacts and such, so they should be present in the project's classpath anyway.

@nigredo-tori
Copy link
Collaborator Author

I've also added java.annotation to the list of known Jakarta modules, since it came up in one of my projects.

@muuki88 muuki88 added the jlink label Oct 14, 2020
@muuki88 muuki88 merged commit 202cb48 into sbt:master Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants