|
7 | 7 | ignorePaths: [ |
8 | 8 | 'instrumentation/**', |
9 | 9 | ], |
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, |
15 | 10 | packageRules: [ |
16 | 11 | { |
17 | 12 | // this is to reduce the number of renovate PRs |
18 | 13 | matchManagers: [ |
19 | 14 | 'github-actions', |
20 | 15 | 'dockerfile', |
| 16 | + 'custom.regex', |
21 | 17 | ], |
22 | 18 | extends: [ |
23 | 19 | 'schedule:weekly', |
24 | 20 | ], |
25 | 21 | groupName: 'weekly update', |
26 | | - separateMinorPatch: false, // overrides separateMinorPatch specified above |
27 | 22 | }, |
28 | 23 | { |
29 | 24 | matchPackageNames: [ |
|
43 | 38 | ignoreUnstable: false, |
44 | 39 | allowedVersions: '!/\\-SNAPSHOT$/', |
45 | 40 | }, |
| 41 | + { |
| 42 | + // currently using gradle plugin org.playframework.play 3.1.0 milestone releases |
| 43 | + // but don't want to pick up SNAPSHOT releases |
| 44 | + matchPackageNames: [ |
| 45 | + 'org.playframework.play:**', |
| 46 | + ], |
| 47 | + allowedVersions: '!/\\-SNAPSHOT$/', |
| 48 | + }, |
46 | 49 | { |
47 | 50 | groupName: 'quarkus packages', |
48 | 51 | matchPackageNames: [ |
|
143 | 146 | matchPackageNames: [ |
144 | 147 | 'uk.org.webcompere:system-stubs-jupiter', |
145 | 148 | ], |
146 | | - matchUpdateTypes: [ |
147 | | - 'major', |
148 | | - 'minor', |
149 | | - ], |
150 | | - enabled: false, |
| 149 | + allowedVersions: '/^2\\.0\\./', |
151 | 150 | }, |
152 | 151 | { |
153 | 152 | // wiremock 3+ requires Java 11+ |
|
190 | 189 | enabled: false, |
191 | 190 | }, |
192 | 191 | { |
193 | | - // intentionally using Spring Boot 2 in this smoke tests |
194 | | - // new versions of Spring Boot 3 are tested with |
195 | | - // https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/dc4330e0a3060bd7d8c4090ad0b8fc4727e68113/settings.gradle.kts#L43-L45 |
| 192 | + // intentionally using Spring Boot 2 in these smoke tests |
196 | 193 | matchFileNames: [ |
197 | 194 | 'smoke-tests/images/spring-boot/build.gradle.kts', |
198 | 195 | 'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts', |
|
203 | 200 | ], |
204 | 201 | matchPackageNames: [ |
205 | 202 | 'org.slf4j:slf4j-api', |
206 | | - 'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot" |
207 | | - 'org.springframework.boot:spring-boot-dependencies', |
| 203 | + 'org.springframework.boot:**', |
208 | 204 | ], |
209 | 205 | matchUpdateTypes: [ |
210 | 206 | 'major', |
211 | | - 'minor', |
212 | 207 | ], |
213 | 208 | enabled: false, |
214 | 209 | }, |
215 | 210 | { |
216 | | - // intentionally using Spring Boot 2 in this smoke tests |
| 211 | + // intentionally using Logback 1.2 (for Spring Boot 2) in these smoke tests |
217 | 212 | matchFileNames: [ |
| 213 | + 'smoke-tests/images/spring-boot/build.gradle.kts', |
218 | 214 | 'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts', |
219 | 215 | 'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts', |
220 | 216 | ], |
221 | | - matchPackageNames: [ |
222 | | - 'ch.qos.logback:logback-classic', |
223 | | - ], |
224 | | - matchUpdateTypes: [ |
225 | | - 'minor', |
226 | | - ], |
227 | | - enabled: false, |
228 | | - }, |
229 | | - { |
230 | | - // intentionally using logback 1.2 in this smoke tests |
231 | | - matchFileNames: [ |
232 | | - 'smoke-tests/images/spring-boot/build.gradle.kts', |
233 | | - ], |
234 | | - matchUpdateTypes: [ |
235 | | - 'major', |
236 | | - 'minor', |
237 | | - ], |
238 | | - enabled: false, |
239 | 217 | matchPackageNames: [ |
240 | 218 | 'ch.qos.logback:**', |
241 | 219 | ], |
| 220 | + allowedVersions: '/^1\\.2\\./', |
242 | 221 | }, |
243 | 222 | { |
244 | 223 | // intentionally using slf4j 1 in this smoke tests |
|
269 | 248 | ], |
270 | 249 | }, |
271 | 250 | { |
272 | | - // intentionally aligning both netty 4.0 and 4.1 version in this convention |
| 251 | + // intentionally aligning netty 4.0 versions in this convention |
273 | 252 | matchFileNames: [ |
274 | 253 | 'conventions/src/main/kotlin/otel.java-conventions.gradle.kts', |
275 | 254 | ], |
276 | 255 | matchPackageNames: [ |
277 | 256 | 'io.netty:netty-bom', |
278 | 257 | ], |
279 | | - matchUpdateTypes: [ |
280 | | - 'major', |
281 | | - 'minor', |
| 258 | + matchCurrentVersion: '/^4\\.0\\./', |
| 259 | + allowedVersions: '/^4\\.0\\./', |
| 260 | + }, |
| 261 | + { |
| 262 | + // intentionally aligning netty 4.1 versions in this convention |
| 263 | + matchFileNames: [ |
| 264 | + 'conventions/src/main/kotlin/otel.java-conventions.gradle.kts', |
282 | 265 | ], |
283 | | - enabled: false, |
| 266 | + matchPackageNames: [ |
| 267 | + 'io.netty:netty-bom', |
| 268 | + ], |
| 269 | + matchCurrentVersion: '/^4\\.1\\./', |
| 270 | + allowedVersions: '/^4\\.1\\./', |
284 | 271 | }, |
285 | 272 | { |
286 | 273 | // intentionally using scala 2.11 in otel.scala-conventions.gradle.kts |
|
290 | 277 | matchPackageNames: [ |
291 | 278 | 'org.scala-lang:scala-library', |
292 | 279 | ], |
293 | | - matchUpdateTypes: [ |
294 | | - 'major', |
295 | | - 'minor', |
296 | | - ], |
297 | | - enabled: false, |
| 280 | + allowedVersions: '/^2\\.11\\./', |
298 | 281 | }, |
299 | 282 | { |
300 | | - // intentionally using Java 11 in some examples |
| 283 | + // intentionally testing against specific major Java versions |
301 | 284 | matchPackageNames: [ |
302 | 285 | 'eclipse-temurin', |
303 | 286 | ], |
|
335 | 318 | matchFileNames: [ |
336 | 319 | 'dependencyManagement/build.gradle.kts', |
337 | 320 | ], |
338 | | - matchUpdateTypes: [ |
339 | | - 'major', |
340 | | - 'minor', |
341 | | - ], |
342 | | - enabled: false, |
343 | 321 | matchPackageNames: [ |
344 | 322 | 'ch.qos.logback:**', |
345 | 323 | ], |
| 324 | + allowedVersions: '/^1\\.3\\./', |
346 | 325 | }, |
347 | 326 | { |
348 | 327 | // intentionally using Spring Boot 2 in dependency management (for Java 8 support) |
|
377 | 356 | datasourceTemplate: 'java-version', |
378 | 357 | managerFilePatterns: [ |
379 | 358 | '.github/workflows/**', |
380 | | - '**/*.gradle.kts' |
| 359 | + '**/*.gradle.kts', |
381 | 360 | ], |
382 | 361 | matchStrings: [ |
383 | | - '(?<currentValue>\\d+) # renovate: datasource=java-version', |
384 | | - '"(?<currentValue>\\d+)" // renovate: datasource=java-version', |
| 362 | + '(?<currentValue>\\d+) # renovate\\(java-version\\)', |
| 363 | + '"(?<currentValue>\\d+)" // renovate\\(java-version\\)', |
385 | 364 | ], |
386 | 365 | depNameTemplate: 'java', |
387 | 366 | extractVersionTemplate: '^(?<version>\\d+)', |
388 | 367 | }, |
| 368 | + { |
| 369 | + customType: 'regex', |
| 370 | + datasourceTemplate: 'docker', |
| 371 | + managerFilePatterns: [ |
| 372 | + '**/build.gradle.kts', |
| 373 | + ], |
| 374 | + matchStrings: [ |
| 375 | + '"(?<depName>eclipse-temurin):(?<currentValue>[^"@]+)@(?<currentDigest>sha256:[0-9a-f]+)"', |
| 376 | + '"(?<depName>ibm-semeru-runtimes):(?<currentValue>[^"@]+)@(?<currentDigest>sha256:[0-9a-f]+)"', |
| 377 | + ], |
| 378 | + }, |
389 | 379 | { |
390 | 380 | customType: 'regex', |
391 | 381 | datasourceTemplate: 'pypi', |
392 | 382 | managerFilePatterns: [ |
393 | | - '/^.github/workflows//', |
| 383 | + '.github/workflows/**', |
394 | 384 | ], |
395 | 385 | matchStrings: [ |
396 | 386 | 'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)', |
|
400 | 390 | customType: 'regex', |
401 | 391 | datasourceTemplate: 'npm', |
402 | 392 | managerFilePatterns: [ |
403 | | - '/^.github/workflows//', |
| 393 | + '.github/workflows/**', |
404 | 394 | ], |
405 | 395 | matchStrings: [ |
406 | 396 | 'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)', |
|
0 commit comments