-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrenovate.json5
82 lines (82 loc) · 2.32 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
{
"extends": [
"github>getstrm/renovate-config//base-renovate-config.json5"
],
baseBranches: [
"main",
"alpha",
"beta"
],
"customManagers": [
{
// Renovate cannot update build.buf.gen dependencies through the regular Maven datasource manager,
// therefore, a custom regex manager is needed.
"customType": "regex",
"fileMatch": [
"build.gradle.kts$"
],
// Via named capturing groups, we extract the buf.build generated dependency name and the current version
"matchStrings": [
"(?<depName>build\\.buf\\.gen:getstrm_pace.*?):(?<currentValue>[\\d.]*?)\\.\\$generatedBufDependencyVersion\\\""
],
"datasourceTemplate": "maven",
// Version extracted from Maven repository
"extractVersionTemplate": "^(?<version>.*)\\..*\\..*$"
}
],
packageRules: [
{
matchManagers: [
"regex"
],
matchPackagePrefixes: [
"build.buf.gen"
],
registryUrls: [
"https://buf.build/gen/maven"
]
},
{
matchManagers: [
"regex"
],
matchPackagePrefixes: [
"build.buf.gen"
],
matchUpdateTypes: [
"major"
],
groupName: "grpc-protobuf major dependencies",
groupSlug: "grpc-protobuf",
automerge: false,
addLabels: [
"major",
"grpc-protobuf",
"gradle",
"gradle-app"
]
},
{
matchManagers: [
"regex"
],
matchPackagePrefixes: [
"build.buf.gen"
],
matchUpdateTypes: [
"minor",
"patch"
],
groupName: "grpc-protobuf non-major dependencies",
groupSlug: "non-major-grpc-protobuf",
automerge: true,
platformAutomerge: true,
addLabels: [
"minor-patch",
"grpc-protobuf",
"gradle",
"gradle-app"
]
}
]
}