Skip to content

Commit

Permalink
Resolves mojohaus#1009: Fixing a broken test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejj0 committed Sep 20, 2023
1 parent bd94557 commit 0641dff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
invoker.goals=versions:display-plugin-updates
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:display-plugin-updates
invoker.mavenOpts = -Dversions.outputFile=./output.txt -DoutputEncoding=UTF-8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// because no minimum Maven version is not specified for the project, multiple
// possible updates for maven-deploy-plugin should be listed
//
// previously, the minimum Maven version for versions-maven-plugin was assumed due to #996
// which caused the plugin to only output the updates for the minimum version for versions-maven-plugin

def output = new File(basedir, "output.txt").text
assert output.contains('All plugins with a version specified are using the latest versions.')
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.4\E/
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.8.1\E/
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.8.2\E/
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 3.0.0-M2\E/
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 3.1.1\E/

0 comments on commit 0641dff

Please sign in to comment.