Skip to content

Commit 19dd896

Browse files
Instruct Renovate to Update Java Version
1 parent c9fc272 commit 19dd896

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/renovate.json

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

.github/renovate.json5

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"reviewers": ["kevincianfarini"],
7+
ignorePresets: [
8+
// Ensure we get the latest version and are not pinned to old versions.
9+
'workarounds:javaLTSVersions',
10+
],
11+
customManagers: [
12+
// Update .java-version file with the latest JDK version.
13+
{
14+
customType: 'regex',
15+
fileMatch: [
16+
'^\\.java-version$',
17+
],
18+
matchStrings: [
19+
'(?<currentValue>.*)\\n',
20+
],
21+
datasourceTemplate: 'java-version',
22+
depNameTemplate: 'java',
23+
// Only write the major version.
24+
extractVersionTemplate: '^(?<version>\\d+)',
25+
},
26+
]
27+
}

0 commit comments

Comments
 (0)