-
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.
Issue #134: Removing the patch: no longer needed; PomHelper.getRawMod…
…el can be used instead. Adding more integration tests.
- Loading branch information
Showing
15 changed files
with
44 additions
and
21 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
versions-maven-plugin/src/it/it-force-releases-issue-134/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 |
---|---|---|
@@ -1,2 +1 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:force-releases | ||
invoker.mavenOpts = -DprocessDependencyManagement=true |
3 changes: 1 addition & 2 deletions
3
versions-maven-plugin/src/it/it-force-releases-issue-134/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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
def project = new XmlSlurper() | ||
.parse( new File( basedir, 'pom.xml' ) ) | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version == '1.0.0' |
2 changes: 2 additions & 0 deletions
2
versions-maven-plugin/src/it/it-use-dep-version-issue-134/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-dep-version | ||
invoker.mavenOpts = -DdepVersion=31 -Dincludes=org.apache.maven:maven-parent |
24 changes: 24 additions & 0 deletions
24
versions-maven-plugin/src/it/it-use-dep-version-issue-134/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,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-use-releases-issue-134</artifactId> | ||
<version>1.0</version> | ||
<packaging>pom</packaging> | ||
<name>Check if boms are upated</name> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-parent</artifactId> | ||
<!-- use an old version: --> | ||
<version>30</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
</project> |
4 changes: 4 additions & 0 deletions
4
versions-maven-plugin/src/it/it-use-dep-version-issue-134/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,4 @@ | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version == 31 |
1 change: 0 additions & 1 deletion
1
versions-maven-plugin/src/it/it-use-latest-releases-issue-134/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 |
---|---|---|
@@ -1,2 +1 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:use-latest-releases | ||
invoker.mavenOpts = -DprocessDependencyManagement=true |
5 changes: 2 additions & 3 deletions
5
versions-maven-plugin/src/it/it-use-latest-releases-issue-134/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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
def project = new XmlSlurper() | ||
.parse( new File( basedir, 'pom.xml' ) ) | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version != '30' | ||
assert project.dependencyManagement.dependencies.dependency.version != '30-SNAPSHOT' |
2 changes: 1 addition & 1 deletion
2
versions-maven-plugin/src/it/it-use-latest-snapshots-issue-134/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:use-latest-snapshots | ||
invoker.mavenOpts = -DprocessDependencyManagement=true -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowIncrementalUpdates=true | ||
invoker.mavenOpts = -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowIncrementalUpdates=true |
3 changes: 1 addition & 2 deletions
3
versions-maven-plugin/src/it/it-use-latest-snapshots-issue-134/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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
def project = new XmlSlurper() | ||
.parse( new File( basedir, 'pom.xml' ) ) | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version == '3.0.0-SNAPSHOT' |
1 change: 0 additions & 1 deletion
1
versions-maven-plugin/src/it/it-use-next-releases-issue-134/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 |
---|---|---|
@@ -1,2 +1 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:use-next-releases | ||
invoker.mavenOpts = -DprocessDependencyManagement=true |
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
5 changes: 2 additions & 3 deletions
5
versions-maven-plugin/src/it/it-use-next-releases-issue-134/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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
def project = new XmlSlurper() | ||
.parse( new File( basedir, 'pom.xml' ) ) | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version == '1.1.0' | ||
assert project.dependencyManagement.dependencies.dependency.version == 31 |
2 changes: 1 addition & 1 deletion
2
versions-maven-plugin/src/it/it-use-next-snapshots-issue-134/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:use-next-snapshots | ||
invoker.mavenOpts = -DprocessDependencyManagement=true -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowIncrementalUpdates=true | ||
invoker.mavenOpts = -DallowMajorUpdates=true -DallowMinorUpdates=true -DallowIncrementalUpdates=true |
1 change: 0 additions & 1 deletion
1
versions-maven-plugin/src/it/it-use-releases-issue-134/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 |
---|---|---|
@@ -1,2 +1 @@ | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:force-releases | ||
invoker.mavenOpts = -DprocessDependencyManagement=true |
3 changes: 1 addition & 2 deletions
3
versions-maven-plugin/src/it/it-use-releases-issue-134/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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
def project = new XmlSlurper() | ||
.parse( new File( basedir, 'pom.xml' ) ) | ||
def project = new XmlSlurper().parse( new File( basedir, 'pom.xml' ) ) | ||
|
||
assert project.dependencyManagement.dependencies.'*'.size() == 1 | ||
assert project.dependencyManagement.dependencies.dependency.version == '1.0.0' |