From fbf46da63177af68db73edce13c9dd952483386a Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 10 Oct 2024 12:01:36 +0200 Subject: [PATCH] Allow two major versions of the plugin --- src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java b/src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java index 2ddc8b1..d9f0ffc 100644 --- a/src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java +++ b/src/test/java/org/openrewrite/jenkins/ModernizePluginTest.java @@ -112,7 +112,7 @@ class Example { record Versions(String parentVersion, String propertyVersion, String bomArtifactId, String bomVersion) { static Versions parse(String pomXml) { return new Versions( - firstGroupFromFirstRegexMatch(" (5\\.[^<]+)", pomXml), + firstGroupFromFirstRegexMatch(" ([45]\\.[^<]+)", pomXml), firstGroupFromFirstRegexMatch("([^<]+)", pomXml), firstGroupFromFirstRegexMatch("(bom-[^<]+)", pomXml), firstGroupFromFirstRegexMatch(" ([^<]+)", pomXml)