slachiewicz opened a new pull request, #12844: URL: https://github.com/apache/maven/pull/12844
Make sure `AuthenticationContext` instances are properly closed even when exceptions are thrown during property retrieval, using try-with-resources. Backport / rebase of #12843 for `maven-4.0.x`: - The `AuthenticationContext` try-with-resources conversions in `LegacyRepositorySystem` and `MavenRepositorySystem` are applied for current paths (`compat/maven-compat` and `impl/maven-core`). - Added try-with-resources conversion for `LegacyRepositorySystemSessionExtender`. Related: #669, #12843 - [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
