|
1 | 1 | { |
2 | | - "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
3 | | - "extends": [ |
4 | | - "config:recommended", |
5 | | - "docker:pinDigests", |
6 | | - "helpers:pinGitHubActionDigests" |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + extends: [ |
| 4 | + 'config:best-practices', |
| 5 | + 'helpers:pinGitHubActionDigestsToSemver', |
7 | 6 | ], |
8 | | - "packageRules": [ |
| 7 | + ignorePaths: [], // overwrite default ignore which includes **/test/** |
| 8 | + // used to update docker image versions used in Java test files |
| 9 | + packageRules: [ |
9 | 10 | { |
10 | 11 | // this is to reduce the number of renovate PRs |
11 | | - "matchManagers": [ |
12 | | - "github-actions", |
13 | | - "dockerfile" |
| 12 | + matchManagers: [ |
| 13 | + 'github-actions', |
| 14 | + 'dockerfile', |
14 | 15 | ], |
15 | | - "extends": ["schedule:weekly"], |
16 | | - "groupName": "weekly update" |
| 16 | + extends: [ |
| 17 | + 'schedule:weekly', |
| 18 | + ], |
| 19 | + groupName: 'weekly update', |
17 | 20 | }, |
18 | 21 | { |
19 | | - "matchPackageNames": [ |
20 | | - "io.opentelemetry.contrib:opentelemetry-aws-xray-propagator", |
21 | | - "io.opentelemetry.proto:opentelemetry-proto", |
22 | | - "io.opentelemetry.semconv:opentelemetry-semconv-incubating" |
| 22 | + matchPackageNames: [ |
| 23 | + 'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator', |
| 24 | + 'io.opentelemetry.proto:opentelemetry-proto', |
| 25 | + 'io.opentelemetry.semconv:opentelemetry-semconv-incubating', |
23 | 26 | ], |
24 | 27 | // Renovate's default behavior is only to update from unstable -> unstable if it's for the |
25 | 28 | // major.minor.patch, under the assumption that you would want to update to the stable version |
26 | 29 | // of that release instead of the unstable version for a future release |
27 | 30 | // (TODO remove once the artifacts above release stable versions) |
28 | | - "ignoreUnstable": false, |
29 | | - "allowedVersions": "!/\\-SNAPSHOT$/" |
| 31 | + ignoreUnstable: false, |
| 32 | + allowedVersions: '!/\\-SNAPSHOT$/', |
30 | 33 | }, |
31 | 34 | { |
32 | 35 | // junit-pioneer 2+ requires Java 11+ |
33 | | - "matchPackageNames": ["org.junit-pioneer:junit-pioneer"], |
34 | | - "matchUpdateTypes": ["major"], |
35 | | - "enabled": false |
| 36 | + matchPackageNames: [ |
| 37 | + 'org.junit-pioneer:junit-pioneer', |
| 38 | + ], |
| 39 | + matchUpdateTypes: [ |
| 40 | + 'major', |
| 41 | + ], |
| 42 | + enabled: false, |
36 | 43 | }, |
37 | 44 | { |
38 | 45 | // mockito 5+ requires Java 11+ |
39 | | - "matchPackagePrefixes": ["org.mockito:"], |
40 | | - "matchUpdateTypes": ["major"], |
41 | | - "enabled": false |
| 46 | + matchUpdateTypes: [ |
| 47 | + 'major', |
| 48 | + ], |
| 49 | + enabled: false, |
| 50 | + matchPackageNames: [ |
| 51 | + 'org.mockito:{/,}**', |
| 52 | + ], |
42 | 53 | }, |
43 | 54 | { |
44 | 55 | // jqf-fuzz version 1.8+ requires Java 11+ |
45 | | - "matchPackageNames": ["edu.berkeley.cs.jqf:jqf-fuzz"], |
46 | | - "matchUpdateTypes": ["major", "minor"], |
47 | | - "enabled": false |
| 56 | + matchPackageNames: [ |
| 57 | + 'edu.berkeley.cs.jqf:jqf-fuzz', |
| 58 | + ], |
| 59 | + matchUpdateTypes: [ |
| 60 | + 'major', |
| 61 | + 'minor', |
| 62 | + ], |
| 63 | + enabled: false, |
48 | 64 | }, |
49 | 65 | { |
50 | 66 | // pinned version for compatibility |
51 | | - "matchPackageNames": ["org.jetbrains.kotlinx:kotlinx-coroutines-core"], |
52 | | - "matchCurrentVersion": "1.5.2", |
53 | | - "enabled": false |
| 67 | + matchPackageNames: [ |
| 68 | + 'org.jetbrains.kotlinx:kotlinx-coroutines-core', |
| 69 | + ], |
| 70 | + matchCurrentVersion: '1.5.2', |
| 71 | + enabled: false, |
| 72 | + }, |
| 73 | + { |
| 74 | + groupName: 'spotless packages', |
| 75 | + matchPackageNames: [ |
| 76 | + 'com.diffplug.spotless{/,}**', |
| 77 | + ], |
54 | 78 | }, |
55 | 79 | { |
56 | | - "matchPackagePrefixes": ["com.diffplug.spotless"], |
57 | | - "groupName": "spotless packages" |
| 80 | + // equals verifier v4+ requires java 17+ |
| 81 | + groupName: 'nl.jqno.equalsverifier', |
| 82 | + matchPackageNames: [ 'equalsverifier'], |
| 83 | + matchUpdateTypes: [ 'major' ], |
| 84 | + enabled: false |
58 | 85 | } |
59 | | - ] |
| 86 | + ], |
| 87 | + customManagers: [ |
| 88 | + { |
| 89 | + customType: 'regex', |
| 90 | + datasourceTemplate: 'java-version', |
| 91 | + managerFilePatterns: [ |
| 92 | + '.github/workflows/**' |
| 93 | + ], |
| 94 | + matchStrings: [ |
| 95 | + '(?<currentValue>\\d+) # renovate: datasource=java-version', |
| 96 | + ], |
| 97 | + depNameTemplate: 'java', |
| 98 | + extractVersionTemplate: '^(?<version>\\d+)', |
| 99 | + }, |
| 100 | + { |
| 101 | + customType: 'regex', |
| 102 | + datasourceTemplate: 'docker', |
| 103 | + managerFilePatterns: [ |
| 104 | + '**/*.java' |
| 105 | + ], |
| 106 | + matchStrings: [ |
| 107 | + '"(?<depName>otel/opentelemetry-collector-contrib):(?<currentValue>[^@"]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"', |
| 108 | + ], |
| 109 | + autoReplaceStringTemplate: '"{{depName}}:{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}"', |
| 110 | + versioningTemplate: 'docker', |
| 111 | + }, |
| 112 | + ], |
60 | 113 | } |
0 commit comments