Skip to content

Commit 710728d

Browse files
chore(config): migrate config .github/renovate.json5
1 parent b5a5bd0 commit 710728d

File tree

1 file changed

+6
-38
lines changed

1 file changed

+6
-38
lines changed

.github/renovate.json5

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@
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
1410
separateMinorPatch: true,
1511
packageRules: [
1612
{
17-
// this is to reduce the number of renovate PRs
1813
matchManagers: [
1914
'github-actions',
2015
'dockerfile',
@@ -23,7 +18,7 @@
2318
'schedule:weekly',
2419
],
2520
groupName: 'weekly update',
26-
separateMinorPatch: false, // overrides separateMinorPatch specified above
21+
separateMinorPatch: false,
2722
},
2823
{
2924
matchPackageNames: [
@@ -36,10 +31,6 @@
3631
'io.opentelemetry.proto:opentelemetry-proto',
3732
'io.opentelemetry.semconv:opentelemetry-semconv',
3833
],
39-
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
40-
// major.minor.patch, under the assumption that you would want to update to the stable version
41-
// of that release instead of the unstable version for a future release
42-
// (TODO remove once the artifacts above release stable versions)
4334
ignoreUnstable: false,
4435
allowedVersions: '!/\\-SNAPSHOT$/',
4536
},
@@ -92,28 +83,24 @@
9283
],
9384
},
9485
{
95-
// prevent update to 2.4-groovy-4.0-SNAPSHOT
9686
allowedVersions: '!/\\-SNAPSHOT$/',
9787
matchPackageNames: [
9888
'org.spockframework:{/,}**',
9989
],
10090
},
10191
{
102-
// prevent 3.0.1u2 -> 3.0.1
10392
matchPackageNames: [
10493
'com.google.code.findbugs:annotations',
10594
],
10695
allowedVersions: '!/3\\.0\\.1$/',
10796
},
10897
{
109-
// OpenTelemetry SDK updates are handled by auto-update-otel-sdk.yml
11098
enabled: false,
11199
matchPackageNames: [
112100
'io.opentelemetry:{/,}**',
113101
],
114102
},
115103
{
116-
// junit-pioneer 2+ requires Java 11+
117104
matchPackageNames: [
118105
'org.junit-pioneer:junit-pioneer',
119106
],
@@ -123,7 +110,6 @@
123110
enabled: false,
124111
},
125112
{
126-
// mockito 5+ requires Java 11+
127113
matchUpdateTypes: [
128114
'major',
129115
],
@@ -133,7 +119,6 @@
133119
],
134120
},
135121
{
136-
// system-stubs-jupiter 2.1+ requires Java 11+
137122
matchPackageNames: [
138123
'uk.org.webcompere:system-stubs-jupiter',
139124
],
@@ -144,9 +129,6 @@
144129
enabled: false,
145130
},
146131
{
147-
// intentionally using Spring Boot 2 in this smoke tests
148-
// new versions of Spring Boot 3 are tested with
149-
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
150132
matchFileNames: [
151133
'smoke-tests/images/spring-boot/build.gradle.kts',
152134
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
@@ -157,7 +139,7 @@
157139
],
158140
matchPackageNames: [
159141
'org.slf4j:slf4j-api',
160-
'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot"
142+
'org.springframework.boot:org.springframework.boot.gradle.plugin',
161143
'org.springframework.boot:spring-boot-dependencies',
162144
],
163145
matchUpdateTypes: [
@@ -167,7 +149,6 @@
167149
enabled: false,
168150
},
169151
{
170-
// intentionally using Spring Boot 2 in this smoke tests
171152
matchFileNames: [
172153
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
173154
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
@@ -181,7 +162,6 @@
181162
enabled: false,
182163
},
183164
{
184-
// intentionally using logback 1.2 in this smoke tests
185165
matchFileNames: [
186166
'smoke-tests/images/spring-boot/build.gradle.kts',
187167
],
@@ -195,7 +175,6 @@
195175
],
196176
},
197177
{
198-
// intentionally using slf4j 1 in this smoke tests
199178
matchFileNames: [
200179
'smoke-tests/images/spring-boot/build.gradle.kts',
201180
],
@@ -208,8 +187,6 @@
208187
],
209188
},
210189
{
211-
// intentionally pinning specifically to guice 5 in the play smoke test
212-
// until we are able to test against the latest version of play
213190
matchFileNames: [
214191
'smoke-tests/images/play/build.gradle.kts',
215192
],
@@ -223,7 +200,6 @@
223200
],
224201
},
225202
{
226-
// intentionally aligning both netty 4.0 and 4.1 version in this convention
227203
matchFileNames: [
228204
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
229205
],
@@ -237,7 +213,6 @@
237213
enabled: false,
238214
},
239215
{
240-
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
241216
matchFileNames: [
242217
'conventions/src/main/kotlin/otel.scala-conventions.gradle.kts',
243218
],
@@ -251,7 +226,6 @@
251226
enabled: false,
252227
},
253228
{
254-
// intentionally using Java 11 in some examples
255229
matchPackageNames: [
256230
'eclipse-temurin',
257231
],
@@ -261,31 +235,27 @@
261235
enabled: false,
262236
},
263237
{
264-
// using old version of this obscure artifact to test instrumentation of Java 1.1 bytecode
265238
matchPackageNames: [
266239
'net.sf.jt400:jt400',
267240
],
268241
matchCurrentVersion: '6.1',
269242
enabled: false,
270243
},
271244
{
272-
// pinned version for compatibility
273245
matchPackageNames: [
274246
'javax.servlet:javax.servlet-api',
275247
],
276248
matchCurrentVersion: '3.0.1',
277249
enabled: false,
278250
},
279251
{
280-
// pinned version for compatibility
281252
matchPackageNames: [
282253
'jakarta.servlet:jakarta.servlet-api',
283254
],
284255
matchCurrentVersion: '5.0.0',
285256
enabled: false,
286257
},
287258
{
288-
// intentionally using logback 1.3 in dependency management (for Java 8 support)
289259
matchFileNames: [
290260
'dependencyManagement/build.gradle.kts',
291261
],
@@ -299,7 +269,6 @@
299269
],
300270
},
301271
{
302-
// intentionally using Spring Boot 2 in dependency management (for Java 8 support)
303272
matchFileNames: [
304273
'dependencyManagement/build.gradle.kts',
305274
],
@@ -312,7 +281,6 @@
312281
],
313282
},
314283
{
315-
// pinned version to Jetty 8 (Servlet 3.0) for compatibility
316284
matchFileNames: [
317285
'examples/distro/instrumentation/servlet-3/build.gradle',
318286
],
@@ -329,8 +297,8 @@
329297
{
330298
customType: 'regex',
331299
datasourceTemplate: 'pypi',
332-
fileMatch: [
333-
'^.github/workflows/',
300+
managerFilePatterns: [
301+
'/^.github/workflows//',
334302
],
335303
matchStrings: [
336304
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
@@ -339,8 +307,8 @@
339307
{
340308
customType: 'regex',
341309
datasourceTemplate: 'npm',
342-
fileMatch: [
343-
'^.github/workflows/',
310+
managerFilePatterns: [
311+
'/^.github/workflows//',
344312
],
345313
matchStrings: [
346314
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',

0 commit comments

Comments
 (0)