-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Base plugin 84 remove guava dependencies #91
Base plugin 84 remove guava dependencies #91
Conversation
When PluginProperties.buildPluginProperties() called, there's no guarantee that the first added map entry would be the first element of the List. When using guava's ImmutableMap, it's known that guava make its implementation "sorted", so this assertion will always valid. This will not the same with JDK map. For short: - "pluginProperties1.get(0).getKey()" using Guava's ImmutableMap.of() : Will always return "foo" - "pluginProperties1.get(0).getKey()" using JDK Map.of() : No guarantee. If someone wants to see old assertions, the commit hash is: 25abb93
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.
Could you bump the version to 5.1.0-SNAPSHOT
and add a couple of upgrade notes to the README?
@pierre should I upgrade |
Ok, I updated the |
Maybe we should merge the upgrades that are ready in killbill-oss-parent and do a release, so that we can start upgrading dependencies in the various repos? |
@@ -14,6 +14,7 @@ Convenience library to help write Kill Bill plugins. | |||
| 4.1.y | 0.22.z | | |||
| 4.2.y | 0.22.z | | |||
| 5.0.y | 0.24.z | | |||
| 5.1.y | 0.24.z | | |||
|
|||
We've upgraded numerous dependencies in 4.2.x (required for Java 11 support). |
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.
I would add a note like (or something along these lines):
Guava has been removed as a dependency in 5.1.x, native JDK alternatives should be used instead
Otherwise, if a user upgrades without looking at the code changes, they might get confused why the compilation errors if they implicitly rely on Guava in their plugins 😅
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.
We have this in NEWS commit.
Attempt to fix this issue: #84 :