-
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
1 parent
d4d0f26
commit d05e5cf
Showing
10 changed files
with
233 additions
and
9 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.0]</verion.dummy-api> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-api</artifactId> | ||
<version>${verion.dummy-api}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
26 changes: 26 additions & 0 deletions
26
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,26 @@ | ||
|
||
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\.0\] 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ /\b1\.2\.2 1\.3 Latest Minor 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\.0\] 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ /\b1\.2\.2 1\.3 Latest Minor 2\.0 2\.1 3\.0\b/ |
2 changes: 2 additions & 0 deletions
2
versions-maven-plugin/src/it/it-823-ranges-update-report-002/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-002/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.0)</verion.dummy-api> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-api</artifactId> | ||
<version>${verion.dummy-api}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
26 changes: 26 additions & 0 deletions
26
versions-maven-plugin/src/it/it-823-ranges-update-report-002/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,26 @@ | ||
|
||
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\.0\) 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ /\b1\.2\.2 1\.3 Latest Minor 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\.0\) 1\.1\.3 1\.3 3/ | ||
// Detail | ||
assert propertyUpdatesReport =~ /Newer versions 1\.1\.3 Latest Incremental/ | ||
assert propertyUpdatesReport =~ /\b1\.2\.2 1\.3 Latest Minor 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
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
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