'Exclude version pattern from renovate
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
- commons-configuration:common-configuration
- org.eclipse.microprofile.config:microprofile-config-api
- javax.enterprise:cdi-api
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.
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dforce |
