-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add ApplicationArchive.getResolvedDependency() #39483
Add ApplicationArchive.getResolvedDependency() #39483
Conversation
Some changes in |
CC @vsevel |
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.
Thanks @Ladicek
Status for workflow
|
I would not replace those methods but introduce new ones and deprecate the old ones. It's public API in the sense that any extension can use it and there's no clear contract defined... |
So there's actually exactly one change that breaks "public" API, this constructor: -public PathTreeClassPathElement(PathTree pathTree, boolean runtime, ArtifactKey dependencyKey) {
+public PathTreeClassPathElement(PathTree pathTree, boolean runtime, ResolvedDependency resolvedDependency) { All other changes are in fact compatible due to It is unfortunately not straightforward to preserve the old constructor. While it's trivial to obtain an |
I see. That's probably acceptable. |
To be absolutely precise, there's also one other "breaking" change: -public ApplicationArchiveImpl(IndexView indexView, OpenPathTree openTree, ArtifactKey artifactKey) {
+public ApplicationArchiveImpl(IndexView indexView, OpenPathTree openTree, ResolvedDependency resolvedDependency) { But I'm sure everyone agrees that this is not a public API. |
No description provided.