-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display versions outside range with star
- Loading branch information
Showing
7 changed files
with
271 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
versions-maven-plugin/src/it/it-823-ranges-update-report-001/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
invoker.goals.1=${project.groupId}:${project.artifactId}:${project.version}:property-updates-report | ||
invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:dependency-updates-report |
22 changes: 22 additions & 0 deletions
22
versions-maven-plugin/src/it/it-823-ranges-update-report-001/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<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-823-ranges-update-report</artifactId> | ||
<version>1.0</version> | ||
<packaging>pom</packaging> | ||
<name>ranges-update-report</name> | ||
<url>http://localhost/</url> | ||
|
||
<properties> | ||
<verion.dummy-api>[1.1.2,3.4)</verion.dummy-api> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-api</artifactId> | ||
<version>${verion.dummy-api}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
28 changes: 28 additions & 0 deletions
28
versions-maven-plugin/src/it/it-823-ranges-update-report-001/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
propertyUpdatesReport = new File( basedir, "target/site/property-updates-report.html" ).text | ||
.replaceAll( '<[^>]+>', ' ' ) | ||
.replaceAll( '&[^;]+;', ' ' ) | ||
.replaceAll( '\\s+', ' ' ) | ||
|
||
assert ! ( propertyUpdatesReport =~ /\b1\.1\.0-2\b/ ) | ||
assert ! ( propertyUpdatesReport =~ /\b1\.1\.1-2\b/ ) | ||
// Summary | ||
assert propertyUpdatesReport =~ / \[1\.1\.2,3\.4\) 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ / \* 1\.2\.2 \* 1\.3 Latest Minor/ | ||
assert propertyUpdatesReport =~ / \* 2\.0 \* 2\.1 \* 3\.0\b/ | ||
|
||
dependencyUpdatesReport = new File( basedir, "target/site/dependency-updates-report.html" ).text | ||
.replaceAll( '<[^>]+>', ' ' ) | ||
.replaceAll( '&[^;]+;', ' ' ) | ||
.replaceAll( '\\s+', ' ' ) | ||
|
||
assert ! ( dependencyUpdatesReport =~ /\b1\.1\.0-2\b/ ) | ||
assert ! ( dependencyUpdatesReport =~ /\b1\.1\.1-2\b/ ) | ||
// Summary | ||
assert propertyUpdatesReport =~ / \[1\.1\.2,3\.4\) 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ / \* 1\.2\.2 \* 1\.3 Latest Minor/ | ||
assert propertyUpdatesReport =~ / \* 2\.0 \* 2\.1 \* 3\.0\b/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.