Skip to content

Warn when a hook or selector script is BeanShell - #770

Merged
slachiewicz merged 1 commit into
masterfrom
agent/bsh-deprecation-warning
Sep 25, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/bsh-deprecation-warning

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Part of apache/maven#13207. The plugin logs BeanShell scripts are deprecated, port <file> to Groovy: <docs link> for every .bsh selector, pre-build or post-build script it runs, once per file, both in its own output and in the IT's build.log. The check follows the script runner's resolution (the name as given, then .bsh), so a bare verify that resolves to verify.bsh is reported too.

The site examples for selector scripts and the usage page now show Groovy files, and the pre/post build page says the plugin warns.

Verified: mvn -Prun-its verify -Dinvoker.test='script-*' → 11 ITs passed; script-context asserts the warning appears once for each of its two BeanShell scripts and not for the Groovy ones.

BeanShell scripts are deprecated (apache/maven#13207); the plugin now says so
for every .bsh file it runs, once per file, in its own log and in the build log
of the IT, and the site examples use Groovy throughout.
@slachiewicz slachiewicz added the deprecated Pull requests that deprecate features label Sep 21, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 21, 2026 09:40
@slachiewicz slachiewicz added the breaking Pull requests that break existing features label Sep 21, 2026
@slawekjaranowski

Copy link
Copy Markdown
Member

@slachiewicz maybe breaking label is not needed, ad we only add a warning?

@slachiewicz slachiewicz removed the breaking Pull requests that break existing features label Sep 25, 2026
@slachiewicz
slachiewicz merged commit 2c1615b into master Sep 25, 2026
22 checks passed
@slachiewicz
slachiewicz deleted the agent/bsh-deprecation-warning branch September 25, 2026 14:58
@github-actions github-actions Bot added this to the 3.10.2 milestone Sep 25, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants