-
Notifications
You must be signed in to change notification settings - Fork 919
/
Copy pathrenovate.json5
343 lines (343 loc) · 9.18 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
'docker:pinDigests',
'helpers:pinGitHubActionDigests',
],
ignorePaths: [
'instrumentation/**',
],
// needed in order to get patch-only updates in package rules below
// unfortunately you can't combine updateTypes and separateMinorPatch in the same package rule
// so we have to apply it globally here, see
// https://github.com/renovatebot/renovate/discussions/8399#discussioncomment-305798
separateMinorPatch: true,
packageRules: [
{
// this is to reduce the number of renovate PRs
matchManagers: [
'github-actions',
'dockerfile',
],
extends: [
'schedule:weekly',
],
groupName: 'weekly update',
separateMinorPatch: false, // overrides separateMinorPatch specified above
},
{
matchPackageNames: [
'io.opentelemetry.contrib:opentelemetry-aws-resources',
'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator',
'io.opentelemetry.contrib:opentelemetry-gcp-resources',
'io.opentelemetry.contrib:opentelemetry-baggage-processor',
'io.opentelemetry.proto:opentelemetry-proto',
'io.opentelemetry.semconv:opentelemetry-semconv',
],
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
// major.minor.patch, under the assumption that you would want to update to the stable version
// of that release instead of the unstable version for a future release
// (TODO remove once the artifacts above release stable versions)
ignoreUnstable: false,
allowedVersions: '!/\\-SNAPSHOT$/',
},
{
groupName: 'quarkus packages',
matchPackageNames: [
'io.quarkus{/,}**',
],
},
{
groupName: 'gradle develocity packages',
matchPackageNames: [
'com.gradle.develocity{/,}**',
],
},
{
groupName: 'armeria packages',
matchPackageNames: [
'com.linecorp.armeria:{/,}**',
],
},
{
groupName: 'spotless packages',
matchPackageNames: [
'com.diffplug.spotless{/,}**',
],
},
{
groupName: 'byte buddy packages',
matchPackageNames: [
'net.bytebuddy:{/,}**',
],
},
{
groupName: 'gradle shadow packages',
matchPackageNames: [
'com.gradleup.shadow{/,}**',
],
},
{
groupName: 'jackson packages',
matchPackageNames: [
'com.fasterxml.jackson{/,}**',
],
},
{
// prevent update to 2.4-groovy-4.0-SNAPSHOT
allowedVersions: '!/\\-SNAPSHOT$/',
matchPackageNames: [
'org.spockframework:{/,}**',
],
},
{
// prevent 3.0.1u2 -> 3.0.1
matchPackageNames: [
'com.google.code.findbugs:annotations',
],
allowedVersions: '!/3\\.0\\.1$/',
},
{
// OpenTelemetry SDK updates are handled by auto-update-otel-sdk.yml
enabled: false,
matchPackageNames: [
'io.opentelemetry:{/,}**',
],
},
{
// junit-pioneer 2+ requires Java 11+
matchPackageNames: [
'org.junit-pioneer:junit-pioneer',
],
matchUpdateTypes: [
'major',
],
enabled: false,
},
{
// mockito 5+ requires Java 11+
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.mockito:{/,}**',
],
},
{
// system-stubs-jupiter 2.1+ requires Java 11+
matchPackageNames: [
'uk.org.webcompere:system-stubs-jupiter',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
},
{
// intentionally using Spring Boot 2 in this smoke tests
// new versions of Spring Boot 3 are tested with
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45
matchFileNames: [
'smoke-tests/images/spring-boot/build.gradle.kts',
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
'smoke-tests-otel-starter/spring-boot-common/build.gradle.kts',
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
'smoke-tests-otel-starter/spring-boot-reactive-common/build.gradle.kts',
'smoke-tests-otel-starter/spring-smoke-testing/build.gradle.kts',
],
matchPackageNames: [
'org.slf4j:slf4j-api',
'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot"
'org.springframework.boot:spring-boot-dependencies',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
},
{
// intentionally using Spring Boot 2 in this smoke tests
matchFileNames: [
'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts',
'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts',
],
matchPackageNames: [
'ch.qos.logback:logback-classic',
],
matchUpdateTypes: [
'minor',
],
enabled: false,
},
{
// intentionally using logback 1.2 in this smoke tests
matchFileNames: [
'smoke-tests/images/spring-boot/build.gradle.kts',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
matchPackageNames: [
'ch.qos.logback:{/,}**',
],
},
{
// intentionally using slf4j 1 in this smoke tests
matchFileNames: [
'smoke-tests/images/spring-boot/build.gradle.kts',
],
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.slf4j:{/,}**',
],
},
{
// intentionally pinning specifically to guice 5 in the play smoke test
// until we are able to test against the latest version of play
matchFileNames: [
'smoke-tests/images/play/build.gradle.kts',
],
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'com.google.inject:{/,}**',
'com.google.inject.extensions:{/,}**',
],
},
{
// intentionally aligning both netty 4.0 and 4.1 version in this convention
matchFileNames: [
'conventions/src/main/kotlin/otel.java-conventions.gradle.kts',
],
matchPackageNames: [
'io.netty:netty-bom',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
},
{
// intentionally using scala 2.11 in otel.scala-conventions.gradle.kts
matchFileNames: [
'conventions/src/main/kotlin/otel.scala-conventions.gradle.kts',
],
matchPackageNames: [
'org.scala-lang:scala-library',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
},
{
// intentionally using Java 11 in some examples
matchPackageNames: [
'eclipse-temurin',
],
matchUpdateTypes: [
'major',
],
enabled: false,
},
{
// using old version of this obscure artifact to test instrumentation of Java 1.1 bytecode
matchPackageNames: [
'net.sf.jt400:jt400',
],
matchCurrentVersion: '6.1',
enabled: false,
},
{
// pinned version for compatibility
matchPackageNames: [
'javax.servlet:javax.servlet-api',
],
matchCurrentVersion: '3.0.1',
enabled: false,
},
{
// pinned version for compatibility
matchPackageNames: [
'jakarta.servlet:jakarta.servlet-api',
],
matchCurrentVersion: '5.0.0',
enabled: false,
},
{
// intentionally using logback 1.3 in dependency management (for Java 8 support)
matchFileNames: [
'dependencyManagement/build.gradle.kts',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
matchPackageNames: [
'ch.qos.logback:{/,}**',
],
},
{
// intentionally using Spring Boot 2 in dependency management (for Java 8 support)
matchFileNames: [
'dependencyManagement/build.gradle.kts',
],
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.springframework.boot:spring-boot-dependencies{/,}**',
],
},
{
// pinned version to Jetty 8 (Servlet 3.0) for compatibility
matchFileNames: [
'examples/distro/instrumentation/servlet-3/build.gradle',
],
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.eclipse.jetty:{/,}**',
],
},
],
customManagers: [
{
customType: 'regex',
datasourceTemplate: 'pypi',
fileMatch: [
'^.github/workflows/',
],
matchStrings: [
'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)',
],
},
{
customType: 'regex',
datasourceTemplate: 'npm',
fileMatch: [
'^.github/workflows/',
],
matchStrings: [
'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)',
],
},
],
}