Skip to content

Require BentoBox 3.19.1 at runtime#169

Merged
tastybento merged 1 commit into
developfrom
feature/require-bentobox-3.19.1
Jul 11, 2026
Merged

Require BentoBox 3.19.1 at runtime#169
tastybento merged 1 commit into
developfrom
feature/require-bentobox-3.19.1

Conversation

@tastybento

Copy link
Copy Markdown
Member

Summary

The 2.10.0 custom block support relies on BentoBox hook functionality that is only present in BentoBox 3.19.1+. On an older core those calls fail. This sets the addon's minimum api-version to 3.19.1 so BentoBox refuses to load the addon on an older core rather than failing at runtime.

Why hardcoded, not ${bentobox.version}

addon.yml previously filtered api-version from the pom's ${bentobox.version} (3.17.0), which is also the compile dependency. Bumping that property to 3.19.1 would break the build — 3.18.x+ artifacts are compiled for Java 25 and can't be read by the Java 21 CI toolchain.

Hardcoding api-version: 3.19.1 (as every other BentoBox addon does) decouples the runtime minimum (3.19.1) from the compile dependency (3.17.0), so CI keeps building on Java 21 while servers are correctly required to run BentoBox 3.19.1+.

🔺 Admins must be on BentoBox 3.19.1+ to use 2.10.0.

🤖 Generated with Claude Code

The 2.10.0 custom block support calls BentoBox hook functionality that is only
available in BentoBox 3.19.1+; on older cores those calls fail. Declare 3.19.1
as the minimum api-version so BentoBox refuses to load the addon on an older
core instead of failing at runtime.

api-version is hardcoded (matching the other addons) rather than filtered from
${bentobox.version}, so the runtime minimum (3.19.1) stays decoupled from the
compile dependency (3.17.0, kept for the Java 21 CI toolchain).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01AgLXH3e951W2wiUg2BU4WM
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit b210207 into develop Jul 11, 2026
4 checks passed
@tastybento tastybento deleted the feature/require-bentobox-3.19.1 branch July 11, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant