Skip to content

Deprecate the evaluateBeanshell rule - #1034

Merged
slachiewicz merged 1 commit into
masterfrom
agent/deprecate-beanshell
Sep 20, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/deprecate-beanshell

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Marks EvaluateBeanshell @Deprecated, logs a warning when the rule runs, and says so on the rule page and the rules index, pointing at requireProperty/requireFilesExist/requireOS and the custom-rule guide. No behaviour change otherwise. There is no built-in Groovy replacement; whether one is wanted before removal is open on apache/maven#13207.

Verified: mvn install -pl enforcer-rules -am → green, TestEvaluateBeanshell 5/5.

BeanShell is being retired across Maven (apache/maven#13207); the bsh
artifact has had no release on Central since 2016. The rule keeps working
and logs a warning so users have time to move to a built-in or custom rule.
@slachiewicz slachiewicz added documentation Improvements or additions to documentation deprecated Pull requests that deprecate features labels Sep 20, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 10:31
@slachiewicz
slachiewicz merged commit 598b426 into master Sep 20, 2026
20 of 21 checks passed
@slachiewicz
slachiewicz deleted the agent/deprecate-beanshell branch September 20, 2026 10:47
@github-actions github-actions Bot added this to the 3.6.4 milestone Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecated Pull requests that deprecate features documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant