8000 chore(proc): modify renovate configuration (#8910) · aristide-n/java-docs-samples@a004768 · GitHub
[go: up one dir, main page]

Skip to content

Commit a004768

Browse files
authored
chore(proc): modify renovate configuration (GoogleCloudPlatform#8910)
change configuration to: * aggregate ALL Java dependencies together. * schedule renovate PRs to be weekly before monday. * add configs for docker and terraform (just in case) * prevent automatic major version upgrades. * keep special handling for Spring Boot and Micronaut. * disable upgrades for Scala and Spark SQL. * put the link to the legacy configuration as comment in the .json5 move configuration under .github/ and upgrade format to json5.
1 parent 91792d4 commit a004768

File tree

2 files changed

+140
-212
lines changed

2 files changed

+140
-212
lines changed

.github/renovate.json5

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
// find legacy configuration at https://github.com/GoogleCloudPlatform/java-docs-samples/blob/91792d4da53a12f96032f4556815f7d91f27257b/renovate.json
2+
{
3+
"extends": [
4+
"config:recommended",
5+
":approveMajorUpdates",
6+
"schedule:earlyMondays",
7+
":ignoreUnstable",
8+
],
9+
"labels": [
10+
"dependencies",
11+
"automerge"
12+
],
13+
"minimumReleaseAge": "7 days",
14+
"dependencyDashboardLabels": [
15+
"type: process",
16+
],
17+
"packageRules": [
18+
{
19+
"matchCategories": [
20+
"java"
21+
],
22+
"addLabels": [
23+
"lang: java"
24+
]
25+
},
26+
// TODO: check if auto-merge rules will work at all
27+
{
28+
"matchUpdateTypes": [
29+
"minor",
30+
"patch",
31+
"digest",
32+
"lockFileMaintenance"
33+
],
34+
"automerge": true
35+
},
36+
{
37+
"matchDepTypes": [
38+
"devDependencies"
39+
],
40+
"automerge": true
41+
},
42+
// group all Dockerfile dependencies
43+
{
44+
"matchCategories": [
45+
"docker"
46+
],
47+
"matchUpdateTypes": [
48+
"minor",
49+
"patch",
50+
"digest",
51+
"lockFileMaintenance"
52+
],
53+
"groupName": "docker",
54+
"pinDigests": true,
55+
"automerge": true
56+
},
57+
// group all terraform dependencies for google providers
58+
{
59+
"matchCategories": [
60+
"terraform"
61+
],
62+
"matchDepTypes": [
63+
"provider",
64+
"required_provider"
65+
],
66+
"matchPackagePatterns": "^google",
67+
"groupName": "Terraform Google providers",
68+
},
69+
// *** Java dependency rules:
70+
// group *ALL* Java dependencies
71+
{
72+
"matchCategories": [
73+
"java"
74+
],
75+
"matchUpdateTypes": [
76+
"minor",
77+
"patch",
78+
"digest",
79+
"lockFileMaintenance"
80+
],
81+
"groupName": "java",
82+
"automerge": true
83+
},
84+
// do not allow Spring Boot 3 upgrades yet
85+
{
86+
"matchCategories": [
87+
"java"
88+
],
89+
"matchPackagePatterns": [
90+
"org.springframework.boot 8000 "
91+
],
92+
"matchCurrentVersion": ">=2.0.0, <3.0.0",
93+
"allowedVersions": "<3",
94+
"groupName": "Spring Boot upgrades for v2",
95+
"description": "@akitsch: Spring Boot V3 requires Java 17"
96+
},
97+
// limit micronaut upgrades for versions <= 4
98+
{
99+
"matchPackagePatterns": [
100+
"^io.micronaut"
101+
],
102+
"groupName": "Micronaut packages",
103+
"allowedVersions": "<4",
104+
"matchPaths": [
105+
"appengine-java11/**",
106+
"flexible/java-11/**"
107+
],
108+
"description": "@akitsch: Micronaut V4 requires Java 17"
109+
},
110+
// disable Scala dependency upgrades
111+
{
112+
"matchPackagePatterns": [
113+
"scala"
114+
],
115+
"enabled": false
116+
},
117+
{
118+
"matchPackagePatterns": [
119+
"^jackson-module-scala"
120+
],
121+
"enabled": false
122+
},
123+
// disable SQL Spark dependency upgrades
124+
{
125+
"matchPackagePatterns": [
126+
"^spark-sql"
127+
],
128+
"enabled": false
129+
},
130+
{},
131+
],
132+
"rebaseWhen": "behind-base-branch",
133+
"semanticCommits": "enabled",
134+
"vulnerabilityAlerts": {
135+
"labels": [
136+
"type:security"
137+
],
138+
"minimumReleaseAge": null
139+
},
140+
}

renovate.json

Lines changed: 0 additions & 212 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0