-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathrenovate.json5
38 lines (38 loc) · 837 Bytes
/
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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:base',
],
packageRules: [
{
matchUpdateTypes: [
'minor',
'patch',
'pin',
'digest'
],
automerge: true,
},
],
platformAutomerge: true,
ignorePresets: [
// Ensure we get the latest version and are not pinned to old versions.
'workarounds:javaLTSVersions',
],
customManagers: [
// Update .java-version file with the latest JDK version.
{
customType: 'regex',
fileMatch: [
'\\.java-version$',
],
matchStrings: [
'(?<currentValue>.*)\\n',
],
datasourceTemplate: 'java-version',
depNameTemplate: 'java',
// Only write the major version.
extractVersionTemplate: '^(?<version>\\d+)',
},
],
}