Reputation: 410
There are several standard Java dependencies that have forks with the same maven coordinates and a "redhat-xxx" suffix in their version number, for example
My question is
(How) can I configure renovate to exclude all dependencies whose version matches
/redhat-\d+$/
?
There is a similar question here, but that asks for a more restricted set of dependencies. If I were to define a packageRule like
{
"packageRules": [
{
"groupName" : "Exclude all redhat-xyz versions"
"matchPackagePatterns": [".*"],
"allowedVersions": "!/redhat-\\d+$/"
}
]
}
It would group all dependencies into one giant pull request which isn't helpful.
Upvotes: 6
Views: 2250
Reputation: 2234
Try to set registryUrls
to standard Maven repo so that Redhat dependencies and such are not checked:
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"packageRules": [{
"matchManagers": ["maven"],
"registryUrls": ["https://repo.maven.apache.org/maven2"],
}]
}
or use your given config and add "enabled": false
Upvotes: 3