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

feat(maven-wrapper): wrapperVersion support #31809

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented Oct 6, 2024

Changes

Add ability to extract Maven Wrapper version from new wrapperVersion property, in addition to existing wrapperUrl property.

Specifically:

  • Generalised the extracted text from url to replaceString to match how it's used elsewhere
  • Added additional regex to match/extract wrapperVersion, used when parsing for a version
  • Added a new unit test to cover this scenario

Context

Renovate currently detects the Maven Wrapper version using the wrapperUrl property.

This property was removed in apache/maven-wrapper#114 (3.3.0), and replaced with a new wrapperVersion property in apache/maven-wrapper#135 (3.3.1).

Renovate does not support wrapperVersion property and is unable to identify / upgrade these newer versions.

This directly addresses #31696.

A related discussion is at #28648 - but note that Maven Wrapper 3.3.0 specifically has neither a wrapperUrl, nor a wrapperVersion and is not handled by this pull request, and further development is required. Earlier / later versions are supported.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Copy link
Collaborator

@RahulGautamSingh RahulGautamSingh left a comment

Choose a reason for hiding this comment

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

Code looks good.

rarkins
rarkins previously approved these changes Oct 7, 2024
@rarkins rarkins enabled auto-merge October 7, 2024 07:06
auto-merge was automatically disabled October 7, 2024 08:46

Head branch was pushed to by a user without write access

@rarkins rarkins enabled auto-merge October 7, 2024 11:52
@rarkins rarkins added this pull request to the merge queue Oct 11, 2024
@rarkins rarkins removed this pull request from the merge queue due to a manual request Oct 11, 2024
@rarkins rarkins added this pull request to the merge queue Oct 11, 2024
Merged via the queue into renovatebot:main with commit 97dac5e Oct 11, 2024
40 checks passed
@JackPGreen JackPGreen deleted the maven-`wrapperVersion`-support branch October 11, 2024 10:38
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 38.118.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants