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(datasource/maven): Use relocation information #32636

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jonasrutishauser
Copy link
Contributor

This is the maven datasource part of #32550

@viceice viceice changed the title feat(datasource:maven): Use relocation information feat(datasource/maven): Use relocation information Nov 24, 2024
lib/modules/datasource/maven/index.spec.ts Show resolved Hide resolved
lib/modules/datasource/maven/util.ts Outdated Show resolved Hide resolved
lib/modules/datasource/maven/util.ts Outdated Show resolved Hide resolved
relocation.valueWithPath('artifactId') ?? dependency.name;
result.replacementName = relocationGroup + ':' + relocationName;
const relocationVersion = relocation.valueWithPath('version');
result.replacementVersion = relocationVersion ?? version;
Copy link
Member

Choose a reason for hiding this comment

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

skip version, do not set if not defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be wrong, if the version will not be set.
The documentation says the following:

If any of the values are omitted, it is assumed to be the same as it was before.

lib/modules/datasource/maven/index.spec.ts Outdated Show resolved Hide resolved
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.

3 participants