Sitelet https://github.com/apache/maven-script-interpreter/pull/217
Skip to content

Run scripts with an unknown extension as Groovy - #217

Merged
slachiewicz merged 2 commits into
masterfrom
agent/default-groovy
Sep 30, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/default-groovy

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

A script whose extension matches no registered interpreter ran as BeanShell, a compatibility rule from plugin versions 1.2 and older. It now runs as Groovy, with a warning naming the script and the old behaviour, since BeanShell is deprecated (#216) and becomes an optional dependency in 1.11. Scripts named .bsh and .groovy are unaffected.

Stacked on #216; the site page says which version changed the fallback.

Verified: mvn verify → 34 tests green, including a new one running a verify.script copy of the Groovy test script through the fallback.

Groovy is the second engine for everything BeanShell does here, and the
bsh artifact has had no release on Central since 2016. Running a .bsh
script now logs a warning; BeanShell becomes an optional dependency in
1.11 and support for it will be removed later (apache/maven#13207).
Up to 1.9 they ran as BeanShell, for compatibility with plugin versions
1.2 and older. BeanShell is deprecated and becomes an optional dependency
in 1.11, so the fallback moves to the engine that stays; a warning names
the script and the old behaviour.
@slachiewicz slachiewicz added the deprecated Pull requests that deprecate features label Sep 20, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 14:07
@slachiewicz slachiewicz added this to the 1.10 milestone Sep 21, 2026
Base automatically changed from agent/deprecate-beanshell to master September 30, 2026 14:55
@slachiewicz
slachiewicz merged commit 7bab2bc into master Sep 30, 2026
15 checks passed
@slachiewicz
slachiewicz deleted the agent/default-groovy branch September 30, 2026 15:32
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.

1 participant