Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WW-5449 Make Velocity Tools dependency optional for Velocity plugin #1005

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

kusalk
Copy link
Member

@kusalk kusalk commented Jul 26, 2024

WW-5449

I suspect many applications that use the Velocity plugin don't need the Velocity Tools dependency. By extracting the Velocity Tools related functionality into a separate class VelocityTools.java, we give applications the ability to opt out. This class will only be initialised if struts.velocity.toolboxlocation is set.

Velocity Tools is also still needed if using certain SiteMesh or Tiles plugin functionality. This is the case for the Showcase app so I've added Velocity Tools as an explicit dependency in that pom.

I've also refactored VelocityManager to be more readable.

@kusalk kusalk force-pushed the 7.0.x/WW-5449-remove-vel-tools branch from db7dd72 to 015544a Compare July 26, 2024 09:23
@kusalk kusalk marked this pull request as ready for review July 26, 2024 09:23
@kusalk kusalk marked this pull request as draft July 26, 2024 09:27
@kusalk kusalk marked this pull request as ready for review July 26, 2024 09:34
@kusalk kusalk force-pushed the 7.0.x/WW-5449-remove-vel-tools branch from a0d3421 to b4b4f00 Compare July 26, 2024 10:01
@kusalk kusalk force-pushed the 7.0.x/WW-5449-remove-vel-tools branch from b4b4f00 to ca358c5 Compare July 26, 2024 10:21
Copy link

sonarcloud bot commented Jul 26, 2024

@kusalk kusalk requested a review from lukaszlenart July 26, 2024 10:28
Copy link
Member

@lukaszlenart lukaszlenart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏

@kusalk kusalk merged commit 817b0cd into release/struts-7-0-x Jul 29, 2024
7 checks passed
@kusalk kusalk deleted the 7.0.x/WW-5449-remove-vel-tools branch July 29, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants