Skip to content

Commit

Permalink
[Renovate] Improve Groovy versions handling + minor tweaks (#1884)
Browse files Browse the repository at this point in the history
Renovate has recently started supporting Gradle version catalog
natively, so regex manager no longer handles that (see #1883).

This change implements the same logic (preserve major Groovy version for
our variables) in a native way. Additionally, the simplified JSON5
syntax is applied and `config:recommended` is used after [changes in Renovate 36](https://docs.renovatebot.com/release-notes-for-major-versions/#version-36).
  • Loading branch information
szpak authored Feb 16, 2024
1 parent 14e1a3f commit 350a2d1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
extends: [
"config:recommended"
],
// Don't manage versions in spock modules
// we want to keep low versions for baseline compatibility
"ignorePaths": ["spock-*/**"],
"packageRules": [
ignorePaths: ["spock-*/**"],
packageRules: [
// Disable major version upgrades for Groovy versions
// as we want to keep one for each major version.
// The same applies for mockito as we test with both 4 and 5
{
matchPackagePrefixes: ["org.mockito:"],
matchPackagePrefixes: ["org.codehaus.groovy:"],
matchCurrentValue: "/^2\\./",
allowedVersions: "(,3.0)"
},
{
matchPackagePrefixes: ["org.apache.groovy:"],
matchCurrentValue: "/^4\\./",
allowedVersions: "(,5.0)"
},
{
"matchPackagePrefixes": ["org.codehaus.groovy:", "org.apache.groovy:"],
"matchManagers": ["regex"],
"matchUpdateTypes": ["major"],
"enabled": false
matchPackagePrefixes: ["org.mockito:"],
matchCurrentValue: "/^4\\./",
allowedVersions: "(,5.0)"
}
]
}

0 comments on commit 350a2d1

Please sign in to comment.