Skip to content

Port the IT scripts from BeanShell to Groovy - #1315

Merged
slachiewicz merged 2 commits into
masterfrom
agent/bsh-to-groovy
Sep 20, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
agent/bsh-to-groovy

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Ports the 21 BeanShell IT scripts under src/it/projects to Groovy, keeping the same checks. 17 were already valid Groovy; four needed real changes: MSITE-566 compares against the literal ${project.name}/${menu.title} placeholders, which Groovy would interpolate (single quotes now), and MSITE-658, site-inheritance, site-sd-lang redeclared typed variables in one scope, which BeanShell tolerates and Groovy rejects (the redeclarations are plain assignments now). The rename is a separate commit so the port reads as a diff. Part of apache/maven#13207.

Overlaps with #1313 on MSITE-609/verify and site-deploy/verify; whichever merges second needs a trivial rebase.

Verified: mvn verify -Prun-its -Dinvoker.test=<the 21 IT projects> → Passed: 21, Failed: 0; every build log shows the .groovy post-build script running.

@slachiewicz
slachiewicz marked this pull request as ready for review September 20, 2026 10:37
@slachiewicz
slachiewicz merged commit 048a060 into master Sep 20, 2026
14 of 15 checks passed
@slachiewicz
slachiewicz deleted the agent/bsh-to-groovy branch September 20, 2026 10:52
@github-actions

Copy link
Copy Markdown

@slachiewicz The PR can't be associated to a milestone, because there are multiple open milestones. Please add the text "branch: master" to the description to the milestone where this PR belongs to.

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