Skip to content

Commit

Permalink
Instruct Renovate to do JDK bumps (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton authored Jan 8, 2025
1 parent 665bd14 commit 344325a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,24 @@
extends: [
'config:recommended',
],
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+)',
},
],
}

0 comments on commit 344325a

Please sign in to comment.