-
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.
- added an it testing against a plain (not timestamped) -SNAPSHOT - added a unit test testing against a timestamped snapshot - added another comparison for the base version if it exists
- Loading branch information
1 parent
15d7a17
commit 1d03956
Showing
5 changed files
with
109 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
versions-maven-plugin/src/it/it-use-releases-issue-978-parent-snapshot/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 = ${project.groupId}:${project.artifactId}:${project.version}:use-releases | ||
invoker.mavenOpts = -DprocessParent=true |
17 changes: 17 additions & 0 deletions
17
versions-maven-plugin/src/it/it-use-releases-issue-978-parent-snapshot/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,17 @@ | ||
<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> | ||
|
||
<parent> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-parent2</artifactId> | ||
<version>3.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>it-use-releases-issue-978-parent-snapshot</artifactId> | ||
<version>1</version> | ||
<packaging>pom</packaging> | ||
|
||
<description>Test that parent is updated if it uses a snapshot version</description> | ||
|
||
</project> |
5 changes: 5 additions & 0 deletions
5
versions-maven-plugin/src/it/it-use-releases-issue-978-parent-snapshot/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,5 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.parent.version == '3.0' |
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