Skip to content

Commit

Permalink
Allow two major versions of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 10, 2024
1 parent ba20bd0 commit fbf46da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(" <version>(5\\.[^<]+)", pomXml),
firstGroupFromFirstRegexMatch(" <version>([45]\\.[^<]+)", pomXml),
firstGroupFromFirstRegexMatch("<jenkins.version>([^<]+)", pomXml),
firstGroupFromFirstRegexMatch("<artifactId>(bom-[^<]+)", pomXml),
firstGroupFromFirstRegexMatch(" <version>([^<]+)", pomXml)
Expand Down

0 comments on commit fbf46da

Please sign in to comment.