Skip to content

Commit 883d2e1

Browse files
authored
chore: importing gax-java's Renovate configuration with regex (#1442)
Importing gax-java repository's renovate.json rule to this repository https://togithub.com/googleapis/gax-java/blob/main/renovate.json#L7. As per the documentation (https://docs.renovatebot.com/modules/manager/regex/#regular-expression-capture-groups) I confirmed the regex `"=(?<depName>.+\\:.+?):(?<currentValue>.+?)\\n"` works in https://regex101.com/r/01eHFC/1
1 parent d831bd2 commit 883d2e1

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

renovate.json

+49
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44
],
55
"ignorePaths": [".kokoro/requirements.txt"],
66
"ignoreDeps": ["rules_pkg"],
7+
"regexManagers": [
8+
{
9+
"fileMatch": ["^gax-java/dependencies\\.properties$"],
10+
"matchStrings": ["=(?<depName>.+\\:.+?):(?<currentValue>.+?)\\n"],
11+
"datasourceTemplate": "maven"
12+
},
13+
{
14+
"fileMatch": ["^gax-java/dependencies\\.properties$"],
15+
"matchStrings": ["version\\.com_google_protobuf=(?<currentValue>.+?)\\n"],
16+
"depNameTemplate": "com.google.protobuf:protobuf-java",
17+
"datasourceTemplate": "maven"
18+
},
19+
{
20+
"fileMatch": ["^gax-java/dependencies\\.properties$"],
21+
"matchStrings": ["version\\.google_java_format=(?<currentValue>.+?)\\n"],
22+
"depNameTemplate": "com.google.googlejavaformat:google-java-format",
23+
"datasourceTemplate": "maven"
24+
},
25+
{
26+
"fileMatch": ["^gax-java/dependencies\\.properties$"],
27+
"matchStrings": ["version\\.io_grpc=(?<currentValue>.+?)\\n"],
28+
"depNameTemplate": "io.grpc:grpc-core",
29+
"datasourceTemplate": "maven"
30+
}
31+
],
732
"packageRules": [
833
{
934
"matchUpdateTypes": ["major"],
@@ -72,6 +97,30 @@
7297
"^com.google.protobuf"
7398
],
7499
"groupName": "Protobuf dependencies"
100+
},
101+
{
102+
"packagePatterns": [
103+
"^io.grpc"
104+
],
105+
"groupName": "gRPC dependencies"
106+
},
107+
{
108+
"packagePatterns": [
109+
"^com.google.auth"
110+
],
111+
"groupName": "Google Auth Library dependencies"
112+
},
113+
{
114+
"packagePatterns": [
115+
"^io.opencensus"
116+
],
117+
"groupName": "OpenCensus dependencies"
118+
},
119+
{
120+
"packagePatterns": [
121+
"^io.netty"
122+
],
123+
"groupName": "Netty dependencies"
75124
}
76125
]
77126
}

0 commit comments

Comments
 (0)