Skip to content

Commit eeb1527

Browse files
authored
Simplify renovate config (#15357)
1 parent cad1897 commit eeb1527

File tree

1 file changed

+17
-31
lines changed

1 file changed

+17
-31
lines changed

.github/renovate.json5

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
ignorePaths: [
88
'instrumentation/**',
99
],
10-
// needed in order to get patch-only updates in package rules below
11-
// unfortunately you can't combine updateTypes and separateMinorPatch in the same package rule
12-
// so we have to apply it globally here, see
13-
// https://github.com/renovatebot/renovate/discussions/8399#discussioncomment-305798
14-
separateMinorPatch: true,
1510
packageRules: [
1611
{
1712
// this is to reduce the number of renovate PRs
@@ -23,7 +18,6 @@
2318
'schedule:weekly',
2419
],
2520
groupName: 'weekly update',
26-
separateMinorPatch: false, // overrides separateMinorPatch specified above
2721
},
2822
{
2923
matchPackageNames: [
@@ -151,11 +145,7 @@
151145
matchPackageNames: [
152146
'uk.org.webcompere:system-stubs-jupiter',
153147
],
154-
matchUpdateTypes: [
155-
'major',
156-
'minor',
157-
],
158-
enabled: false,
148+
allowedVersions: '/^2\.0\./',
159149
},
160150
{
161151
// wiremock 3+ requires Java 11+
@@ -226,11 +216,7 @@
226216
matchPackageNames: [
227217
'ch.qos.logback:**',
228218
],
229-
matchUpdateTypes: [
230-
'major',
231-
'minor',
232-
],
233-
enabled: false,
219+
allowedVersions: '/^1\.2\./',
234220
},
235221
{
236222
// intentionally using slf4j 1 in this smoke tests
@@ -261,18 +247,26 @@
261247
],
262248
},
263249
{
264-
// intentionally aligning both netty 4.0 and 4.1 version in this convention
250+
// intentionally aligning netty 4.0 versions in this convention
265251
matchFileNames: [
266252
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
267253
],
268254
matchPackageNames: [
269255
'io.netty:netty-bom',
270256
],
271-
matchUpdateTypes: [
272-
'major',
273-
'minor',
257+
matchCurrentVersion: '/^4\\.0\\./',
258+
allowedVersions: '/^4\\.0\\./',
259+
},
260+
{
261+
// intentionally aligning netty 4.1 versions in this convention
262+
matchFileNames: [
263+
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
274264
],
275-
enabled: false,
265+
matchPackageNames: [
266+
'io.netty:netty-bom',
267+
],
268+
matchCurrentVersion: '/^4\\.1\\./',
269+
allowedVersions: '/^4\\.1\\./',
276270
},
277271
{
278272
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
@@ -282,11 +276,7 @@
282276
matchPackageNames: [
283277
'org.scala-lang:scala-library',
284278
],
285-
matchUpdateTypes: [
286-
'major',
287-
'minor',
288-
],
289-
enabled: false,
279+
allowedVersions: '/^2\.11\./',
290280
},
291281
{
292282
// intentionally testing against specific major Java versions
@@ -327,14 +317,10 @@
327317
matchFileNames: [
328318
'dependencyManagement/build.gradle.kts',
329319
],
330-
matchUpdateTypes: [
331-
'major',
332-
'minor',
333-
],
334-
enabled: false,
335320
matchPackageNames: [
336321
'ch.qos.logback:**',
337322
],
323+
allowedVersions: '/^1\.3\./',
338324
},
339325
{
340326
// intentionally using Spring Boot 2 in dependency management (for Java 8 support)

0 commit comments

Comments
 (0)