From 8ff8669ae515bc1c54d81434ba0b6e8a7ebdec10 Mon Sep 17 00:00:00 2001 From: Sergei Zharinov <zharinov@users.noreply.github.com> Date: Sun, 22 Nov 2020 18:48:37 +0400 Subject: [PATCH] fix(maven): Add workaround for ancient commons-cli version (#7780) Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com> --- lib/config/presets/internal/workarounds.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/config/presets/internal/workarounds.ts b/lib/config/presets/internal/workarounds.ts index 0fe83edfad..f6e02c2b5b 100644 --- a/lib/config/presets/internal/workarounds.ts +++ b/lib/config/presets/internal/workarounds.ts @@ -5,7 +5,10 @@ export const presets: Record<string, Preset> = { description: [ 'A collection of workarounds for known problems with packages', ], - extends: ['workarounds:unstableV2SetupNodeActions'], + extends: [ + 'workarounds:unstableV2SetupNodeActions', + 'workarounds:mavenCommonsCliAncientVersion', + ], }, unstableV2SetupNodeActions: { description: 'Ignore wrongly tagged actions/setup-node v2 releases', @@ -17,4 +20,13 @@ export const presets: Record<string, Preset> = { }, ], }, + mavenCommonsCliAncientVersion: { + packageRules: [ + { + datasources: ['maven'], + packageNames: ['commons-cli:commons-cli'], + allowedVersions: '!/20040117.000000/', + }, + ], + }, }; -- GitLab