Skip to content

Commit

Permalink
#1001: added a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmoniuk authored and slawekjaranowski committed Sep 10, 2023
1 parent 0b0fdf8 commit 15d7a17
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
invoker.mavenOpts = -Dversions.outputFile=./output.txt -DoutputEncoding=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>localhost</groupId>
<artifactId>it-display-dependency-updates-issue-1001-groupid</artifactId>
<version>1.0</version>
<packaging>pom</packaging>

<description>groupId is expressed via a Maven property</description>

<properties>
<dep.groupId>localhost</dep.groupId>
<dep.version>1.0</dep.version>
</properties>

<dependencies>
<dependency>
<groupId>${dep.groupId}</groupId>
<artifactId>dummy-api</artifactId>
<version>${dep.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 15d7a17

Please sign in to comment.