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

Bump BOM and explicitly depend on caffeine-api to fix LoadingCache.refresh #2435

Merged
merged 3 commits into from May 9, 2023

Conversation

jglick
Copy link
Member

@jglick jglick commented May 8, 2023

Otherwise you get constant errors like

java.lang.NoSuchMethodError: 'void com.github.benmanes.caffeine.cache.LoadingCache.refresh(java.lang.Object)'
	at io.jenkins.blueocean.rest.impl.pipeline.Caches$ListenerImpl.onUpdated(Caches.java:70)

Caused by ben-manes/caffeine#143 as noted in ben-manes/caffeine#543 (comment) and picked up from jenkinsci/caffeine-api-plugin#79. Source-compatible but binary-incompatible, so suffices to rebuild against 3.x.

@jglick jglick requested a review from a team as a code owner May 8, 2023 12:01
@jglick

This comment was marked as resolved.

@jglick
Copy link
Member Author

jglick commented May 8, 2023

@olamy please consider merging & releasing soon, as the caffeine-api update has been out there for a couple weeks and throws errors.

@@ -792,8 +764,8 @@
<rules>
<bannedDependencies>
<excludes>
<!-- TODO very likely wrong -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment here #2433 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit the comment if you like, but can we ship this, or perhaps some more minimal version limited to caffeine-api without a general BOM cleanup?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except the comment. everything looks good.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olamy olamy added the dependencies Pull requests that update a dependency file label May 9, 2023
@olamy olamy merged commit bebdb9a into jenkinsci:master May 9, 2023
11 of 12 checks passed
@jglick jglick deleted the LoadingCache.refresh branch May 9, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
3 participants