From 15d7a17ce4b07bfcf810000756fe4fa1af406397 Mon Sep 17 00:00:00 2001 From: Andrzej Jarmoniuk Date: Fri, 8 Sep 2023 07:31:50 +0200 Subject: [PATCH] #1001: added a test case --- .../invoker.properties | 2 ++ .../pom.xml | 24 +++++++++++++++++++ .../verify.groovy | 2 ++ 3 files changed, 28 insertions(+) create mode 100644 versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/invoker.properties create mode 100644 versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/pom.xml create mode 100644 versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/verify.groovy diff --git a/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/invoker.properties b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/invoker.properties new file mode 100644 index 0000000000..4e78536d92 --- /dev/null +++ b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/invoker.properties @@ -0,0 +1,2 @@ +invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates +invoker.mavenOpts = -Dversions.outputFile=./output.txt -DoutputEncoding=UTF-8 diff --git a/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/pom.xml b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/pom.xml new file mode 100644 index 0000000000..fa70872119 --- /dev/null +++ b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/pom.xml @@ -0,0 +1,24 @@ + + 4.0.0 + + localhost + it-display-dependency-updates-issue-1001-groupid + 1.0 + pom + + groupId is expressed via a Maven property + + + localhost + 1.0 + + + + + ${dep.groupId} + dummy-api + ${dep.version} + + + diff --git a/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/verify.groovy b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/verify.groovy new file mode 100644 index 0000000000..987f31a955 --- /dev/null +++ b/versions-maven-plugin/src/it/it-display-dependency-updates-issue-1001-groupid/verify.groovy @@ -0,0 +1,2 @@ +def output = new File(basedir, "output.txt").text +assert output =~ /\Qlocalhost:dummy-api\E\s*\.*\s*\Q1.0\E\s+->\s+\Q3.0\E\b/