|
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+ |
|
169 | 168 | 'org.snakeyaml:snakeyaml-engine' |
170 | 169 | ], |
171 | 170 | }, |
| 171 | + { |
| 172 | + // groovy 5+ requires Java 11+ |
| 173 | + matchUpdateTypes: [ |
| 174 | + 'major', |
| 175 | + ], |
| 176 | + enabled: false, |
| 177 | + matchPackageNames: [ |
| 178 | + 'org.apache.groovy:**' |
| 179 | + ], |
| 180 | + }, |
172 | 181 | { |
173 | 182 | // vaadin 14 tests require node 16 |
174 | 183 | matchPackageNames: [ |
|
180 | 189 | enabled: false, |
181 | 190 | }, |
182 | 191 | { |
183 | | - // intentionally using Spring Boot 2 in this smoke tests |
184 | | - // new versions of Spring Boot 3 are tested with |
185 | | - // 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 |
186 | 193 | matchFileNames: [ |
187 | 194 | 'smoke-tests/images/spring-boot/build.gradle.kts', |
188 | 195 | 'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts', |
|
193 | 200 | ], |
194 | 201 | matchPackageNames: [ |
195 | 202 | 'org.slf4j:slf4j-api', |
196 | | - 'org.springframework.boot:org.springframework.boot.gradle.plugin', // this is for plugin id "org.springframework.boot" |
197 | | - 'org.springframework.boot:spring-boot-dependencies', |
| 203 | + 'org.springframework.boot:**', |
198 | 204 | ], |
199 | 205 | matchUpdateTypes: [ |
200 | 206 | 'major', |
201 | | - 'minor', |
202 | 207 | ], |
203 | 208 | enabled: false, |
204 | 209 | }, |
205 | 210 | { |
206 | | - // intentionally using Spring Boot 2 in this smoke tests |
| 211 | + // intentionally using Logback 1.2 (for Spring Boot 2) in these smoke tests |
207 | 212 | matchFileNames: [ |
| 213 | + 'smoke-tests/images/spring-boot/build.gradle.kts', |
208 | 214 | 'smoke-tests-otel-starter/spring-boot-2/build.gradle.kts', |
209 | 215 | 'smoke-tests-otel-starter/spring-boot-reactive-2/build.gradle.kts', |
210 | 216 | ], |
211 | | - matchPackageNames: [ |
212 | | - 'ch.qos.logback:logback-classic', |
213 | | - ], |
214 | | - matchUpdateTypes: [ |
215 | | - 'minor', |
216 | | - ], |
217 | | - enabled: false, |
218 | | - }, |
219 | | - { |
220 | | - // intentionally using logback 1.2 in this smoke tests |
221 | | - matchFileNames: [ |
222 | | - 'smoke-tests/images/spring-boot/build.gradle.kts', |
223 | | - ], |
224 | | - matchUpdateTypes: [ |
225 | | - 'major', |
226 | | - 'minor', |
227 | | - ], |
228 | | - enabled: false, |
229 | 217 | matchPackageNames: [ |
230 | 218 | 'ch.qos.logback:**', |
231 | 219 | ], |
| 220 | + allowedVersions: '/^1\\.2\\./', |
232 | 221 | }, |
233 | 222 | { |
234 | 223 | // intentionally using slf4j 1 in this smoke tests |
|
259 | 248 | ], |
260 | 249 | }, |
261 | 250 | { |
262 | | - // intentionally aligning both netty 4.0 and 4.1 version in this convention |
| 251 | + // intentionally aligning netty 4.0 versions in this convention |
263 | 252 | matchFileNames: [ |
264 | 253 | 'conventions/src/main/kotlin/otel.java-conventions.gradle.kts', |
265 | 254 | ], |
266 | 255 | matchPackageNames: [ |
267 | 256 | 'io.netty:netty-bom', |
268 | 257 | ], |
269 | | - matchUpdateTypes: [ |
270 | | - 'major', |
271 | | - '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', |
272 | 265 | ], |
273 | | - enabled: false, |
| 266 | + matchPackageNames: [ |
| 267 | + 'io.netty:netty-bom', |
| 268 | + ], |
| 269 | + matchCurrentVersion: '/^4\\.1\\./', |
| 270 | + allowedVersions: '/^4\\.1\\./', |
274 | 271 | }, |
275 | 272 | { |
276 | 273 | // intentionally using scala 2.11 in otel.scala-conventions.gradle.kts |
|
280 | 277 | matchPackageNames: [ |
281 | 278 | 'org.scala-lang:scala-library', |
282 | 279 | ], |
283 | | - matchUpdateTypes: [ |
284 | | - 'major', |
285 | | - 'minor', |
286 | | - ], |
287 | | - enabled: false, |
| 280 | + allowedVersions: '/^2\\.11\\./', |
288 | 281 | }, |
289 | 282 | { |
290 | | - // intentionally using Java 11 in some examples |
| 283 | + // intentionally testing against specific major Java versions |
291 | 284 | matchPackageNames: [ |
292 | 285 | 'eclipse-temurin', |
293 | 286 | ], |
|
325 | 318 | matchFileNames: [ |
326 | 319 | 'dependencyManagement/build.gradle.kts', |
327 | 320 | ], |
328 | | - matchUpdateTypes: [ |
329 | | - 'major', |
330 | | - 'minor', |
331 | | - ], |
332 | | - enabled: false, |
333 | 321 | matchPackageNames: [ |
334 | 322 | 'ch.qos.logback:**', |
335 | 323 | ], |
| 324 | + allowedVersions: '/^1\\.3\\./', |
336 | 325 | }, |
337 | 326 | { |
338 | 327 | // intentionally using Spring Boot 2 in dependency management (for Java 8 support) |
|
367 | 356 | datasourceTemplate: 'java-version', |
368 | 357 | managerFilePatterns: [ |
369 | 358 | '.github/workflows/**', |
370 | | - '**/*.gradle.kts' |
| 359 | + '**/*.gradle.kts', |
371 | 360 | ], |
372 | 361 | matchStrings: [ |
373 | | - '(?<currentValue>\\d+) # renovate: datasource=java-version', |
374 | | - '"(?<currentValue>\\d+)" // renovate: datasource=java-version', |
| 362 | + '(?<currentValue>\\d+) # renovate\\(java-version\\)', |
| 363 | + '"(?<currentValue>\\d+)" // renovate\\(java-version\\)', |
375 | 364 | ], |
376 | 365 | depNameTemplate: 'java', |
377 | 366 | extractVersionTemplate: '^(?<version>\\d+)', |
378 | 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 | + }, |
379 | 379 | { |
380 | 380 | customType: 'regex', |
381 | 381 | datasourceTemplate: 'pypi', |
382 | 382 | managerFilePatterns: [ |
383 | | - '/^.github/workflows//', |
| 383 | + '.github/workflows/**', |
384 | 384 | ], |
385 | 385 | matchStrings: [ |
386 | 386 | 'pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)', |
|
390 | 390 | customType: 'regex', |
391 | 391 | datasourceTemplate: 'npm', |
392 | 392 | managerFilePatterns: [ |
393 | | - '/^.github/workflows//', |
| 393 | + '.github/workflows/**', |
394 | 394 | ], |
395 | 395 | matchStrings: [ |
396 | 396 | 'npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)', |
|
0 commit comments