-
Notifications
You must be signed in to change notification settings - Fork 152
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
Respect filter on library merge #114
Conversation
} | ||
} | ||
|
||
jarArchiver.addArchivedFileSet(file, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this method deprecated in favor of http://codehaus-plexus.github.io/plexus-archiver/apidocs/org/codehaus/plexus/archiver/Archiver.html#addArchivedFileSet(org.codehaus.plexus.archiver.ArchivedFileSet)
in the version we use? Can we use the preferred one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not deprecated yet and also not in newest maven-archiver version 3.5.0 which includes plexus-archiver 2.4.
I can change my code to use the new method if you want.
Btw. maven-archiver used in this plugin is more than ten years old:
https://search.maven.org/artifact/org.apache.maven/maven-archiver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addArchivedFileSet(File archiveFile, String[] includes, String[] excludes)
is deprecated in that link, but
addArchivedFileSet(ArchivedFileSet fileSet)
is not.
Not sure since which version that is though, probably the newest. (4.2.2?)
Anyway, not necessary to change that since the new method might not even exist in the version we use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this with an empty filter and no filter parameter as well? |
Yes, tested without filter and with empty filter, which will be also set to null. I do not add includes/excludes on null. |
Thank you for merging. When do you plan to do the next release? I need this change for one of my projects. |
Planning to release this week with #115 I'll add both releases to Github as well. Not sure if people use those for anything though, maybe Ant users? |
I'm using GitHub release notifications on some projects to be informed about new versions. This is really useful as I don't need to check versions manually. |
I need to add jackson to my project but I there are some files I don't want to be included in the final jar. This pull request addresses the fact that filter is beeing ignored on libraries.
I tested the code and verified that the filter is now working.
Example pom: