Skip to content

fix(sdk): adapt to PlugwerkUpdateChecker.checkForUpdates(List<InstalledPluginRef>) signature#43

Merged
bigpuritz merged 1 commit into
mainfrom
fix/update-checker-installed-plugin-ref-signature
May 13, 2026
Merged

fix(sdk): adapt to PlugwerkUpdateChecker.checkForUpdates(List<InstalledPluginRef>) signature#43
bigpuritz merged 1 commit into
mainfrom
fix/update-checker-installed-plugin-ref-signature

Conversation

@bigpuritz
Copy link
Copy Markdown
Contributor

Summary

Upstream changed the update-checker SPI signature from Map<String, String> of pluginId → version to List<InstalledPluginRef> (a typed record carrying the same data). Both example hosts pinned to plugwerk = "1.0.0-SNAPSHOT" fail to compile against the current SNAPSHOT until they adopt the new type.

main is currently red locally (and effectively in CI for any new PR — the last scheduled run on main snapshot-pulled an older SDK that still had the Map signature). This blocks every Renovate dependency PR; #42 (slf4j 2.0.17 → 2.0.18) is the immediate trigger but the slf4j bump itself is unrelated to the build break.

Changes

  • plugwerk-java-cli-example/.../UpdateCommand.java — build a List<InstalledPluginRef> from the PF4J PluginWrapper stream; drop now-unused Map / Collectors imports.
  • plugwerk-springboot-thymeleaf-example/.../PluginInstalledController.java — same conversion; Map / Collectors imports stay because the "updates" view model is still a Map a few lines below.

Test plan

…edPluginRef>) signature

Upstream changed the update-checker SPI from a Map<String, String> of
pluginId→version to a List<InstalledPluginRef> (a record carrying pluginId
and version). Both example hosts now build the typed list from PF4J's
PluginWrapper iterable directly — drops the Collectors.toMap + Map imports
in the CLI command, keeps them in the Spring controller (still used for the
"updates" view model on the next few lines).

Without this change main is red against the current 1.0.0-SNAPSHOT, which
also blocks Renovate-driven dependency PRs (e.g. #42) from ever going green.
@bigpuritz bigpuritz added this to the 1.0.0-beta.3 milestone May 13, 2026
@bigpuritz bigpuritz merged commit a86c8cd into main May 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant