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

Replace usage of commons collections 3 with commons collections 4 #3389

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

cziegeler
Copy link
Contributor

Commons collections 3 is outdated and not maintained anymore, this change updates all usage to commons collections 4 - which is already used in some places

@kwin
Copy link
Contributor

kwin commented Jul 25, 2024

As long as it is provided by the uber-jar it will be tricky to prevent those imports from sneaking in again. Any reason why even https://repo1.maven.org/maven2/com/adobe/aem/uber-jar/6.5.21/uber-jar-6.5.21.jar still contains Collections 3? I would expect that to be only provided in https://repo1.maven.org/maven2/com/adobe/aem/uber-jar/6.5.21/uber-jar-6.5.21-apis-with-deprecations.jar....

@kwin
Copy link
Contributor

kwin commented Jul 25, 2024

Is there maybe some configuration on https://github.com/adobe/aemanalyser-maven-plugin/tree/main/aemanalyser-maven-plugin#configuration which could be leveraged to make the build fail in case of using deprecated API (is there even an analyser task for it)?

@cziegeler
Copy link
Contributor Author

@kwin I agree that it would be nice to prevent reintroduction of usage of such APIs. The best place is a PR review - not fool proof of course.
The aemanalyser maven plugin checks such API usage and by default WARNs. It can be changed to fail.
(Site note: the reporting in the latest versions of the plugin is currently broken)

@cziegeler
Copy link
Contributor Author

Is anything missing to apply this PR?

@cziegeler
Copy link
Contributor Author

Can someone please merge this?

@kwin kwin merged commit 8c35330 into Adobe-Consulting-Services:master Jul 31, 2024
19 checks passed
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