From 7a5c14684aef4f7b15ad77338ab7ea552749550a Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Wed, 8 Jan 2025 16:33:06 -0500 Subject: [PATCH] Instruct Renovate to do JDK bumps --- .github/renovate.json5 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index e3eb18c..2208599 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -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: [ + '(?.*)\\n', + ], + datasourceTemplate: 'java-version', + depNameTemplate: 'java', + // Only write the major version. + extractVersionTemplate: '^(?\\d+)', + }, + ], }