Repository navigation
Warn when a hook or selector script is BeanShell - #770
Merged
Merged
Conversation
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.
slawekjaranowski
approved these changes
Sep 25, 2026
Member
|
@slachiewicz maybe breaking label is not needed, ad we only add a warning? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of apache/maven#13207. The plugin logs
BeanShell scripts are deprecated, port <file> to Groovy: <docs link>for every.bshselector, pre-build or post-build script it runs, once per file, both in its own output and in the IT'sbuild.log. The check follows the script runner's resolution (the name as given, then.bsh), so a bareverifythat resolves toverify.bshis 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-contextasserts the warning appears once for each of its two BeanShell scripts and not for the Groovy ones.