Skip to content

Port the IT scripts from BeanShell to Groovy - #451

Merged
slachiewicz merged 2 commits into
maven-install-plugin-3.xfrom
agent/bsh-to-groovy-3x
Sep 20, 2026
Merged

slachiewicz merged 2 commits into
maven-install-plugin-3.xfrom
agent/bsh-to-groovy-3x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Ports the 47 BeanShell IT scripts under src/it to Groovy, keeping the same checks. 25 were already valid Groovy; the rest needed String[] x = { … } initialisers as list literals (22 files), six same-scope File file redeclarations turned into assignments (the install-file-minstall-121* ITs), and a dead import org.apache.maven.plugins.install.Utils removed from six scripts — the class does not exist, BeanShell never resolved the import, Groovy refuses to compile it. The rename is a separate commit so the port reads as a diff. Part of apache/maven#13207. Same port as the master PR.

Verified: mvn verify -Prun-its (full IT set, since non-default-pom cannot be selected through invoker.test) → Passed: 32, Failed: 0, Skipped: 1 (non-changed-artifact, gated to Maven < 3.10 by its invoker.maven.version).

@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 12:49
@slachiewicz
slachiewicz merged commit 390d5fd into maven-install-plugin-3.x Sep 20, 2026
21 checks passed
@slachiewicz
slachiewicz deleted the agent/bsh-to-groovy-3x branch September 20, 2026 13:49
@github-actions github-actions Bot added this to the 3.2.1 milestone Sep 20, 2026
@slachiewicz slachiewicz changed the title [3.x] Port the IT scripts from BeanShell to Groovy Port the IT scripts from BeanShell to Groovy Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant