fix: consider child pom.xml files for the mavenPropertyVersions custom manager (#24691)

This commit is contained in:
Robert Munteanu 2023-09-27 15:51:15 +02:00 committed by GitHub
parent 3ec91b2808
commit a96fa6e7ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ export const presets: Record<string, Preset> = {
customType: 'regex', customType: 'regex',
datasourceTemplate: datasourceTemplate:
'{{#if datasource}}{{{datasource}}}{{else}}maven{{/if}}', '{{#if datasource}}{{{datasource}}}{{else}}maven{{/if}}',
fileMatch: ['^pom\\.xml$'], fileMatch: ['(^|/)pom\\.xml$'],
matchStrings: [ matchStrings: [
'<!--\\s?renovate:( datasource=(?<datasource>[a-z-.]+?))? depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+-->\\s+<.+\\.version>(?<currentValue>.+)<\\/.+\\.version>', '<!--\\s?renovate:( datasource=(?<datasource>[a-z-.]+?))? depName=(?<depName>[^\\s]+?)(?: packageName=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+-->\\s+<.+\\.version>(?<currentValue>.+)<\\/.+\\.version>',
], ],