-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #1191: Processes (all) profiles from original model if transiti…
…ve is false (#1193)
- Loading branch information
Showing
15 changed files
with
195 additions
and
115 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
4 changes: 2 additions & 2 deletions
4
versions-maven-plugin/src/it/it-changerecord-update-parent-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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'parent-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'parent-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-parent' | ||
&& node.@oldVersion == '1.0' | ||
&& node.@newVersion == '3.0' } != null | ||
&& node.@newVersion == '3.0' }.isEmpty()) |
8 changes: 4 additions & 4 deletions
8
versions-maven-plugin/src/it/it-changerecord-update-properties-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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'property-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'property-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-api' | ||
&& node.@oldVersion == '1.0' | ||
&& node.@newVersion == '3.0' } != null | ||
assert changes.propertyUpdate.find { node -> node.@property == 'api' | ||
&& node.@newVersion == '3.0' }.isEmpty()) | ||
assert !(changes.propertyUpdate.find { node -> node.@property == 'api' | ||
&& node.@oldValue == '1.0' | ||
&& node.@newValue == '3.0' } != null | ||
&& node.@newValue == '3.0' }.isEmpty()) |
4 changes: 2 additions & 2 deletions
4
versions-maven-plugin/src/it/it-changerecord-use-latest-releases-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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-api' | ||
&& node.@oldVersion == '1.1.1-2' | ||
&& node.@newVersion == '3.0' } != null | ||
&& node.@newVersion == '3.0' }.isEmpty()) |
4 changes: 2 additions & 2 deletions
4
versions-maven-plugin/src/it/it-changerecord-use-latest-snapshots-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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-api' | ||
&& node.@oldVersion == '1.0' | ||
&& node.@newVersion == '1.9.1-SNAPSHOT' } != null | ||
&& node.@newVersion == '1.9.1-SNAPSHOT' }.isEmpty()) |
4 changes: 2 additions & 2 deletions
4
versions-maven-plugin/src/it/it-changerecord-use-latest-versions-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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-api' | ||
&& node.@oldVersion == '1.1.1-2' | ||
&& node.@newVersion == '3.0' } != null | ||
&& node.@newVersion == '3.0' }.isEmpty()) |
4 changes: 2 additions & 2 deletions
4
versions-maven-plugin/src/it/it-changerecord-use-next-versions-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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def changes = new XmlSlurper().parse( new File( basedir, 'target/versions-changes.xml' ) ) | ||
assert changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
assert !(changes.dependencyUpdate.find { node -> node.@kind == 'dependency-update' | ||
&& node.@groupId == 'localhost' | ||
&& node.@artifactId == 'dummy-api' | ||
&& node.@oldVersion == '1.1.1-2' | ||
&& node.@newVersion == '1.1.2' } != null | ||
&& node.@newVersion == '1.1.2' }.isEmpty()) |
2 changes: 2 additions & 0 deletions
2
versions-maven-plugin/src/it/it-dependency-updates-report-issue-1191/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}:dependency-updates-report | ||
invoker.mavenOpts = -DdependencyUpdatesReportFormats=xml -DprocessDependencyManagementTransitive=false |
29 changes: 29 additions & 0 deletions
29
versions-maven-plugin/src/it/it-dependency-updates-report-issue-1191/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,29 @@ | ||
<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>issue-1191</artifactId> | ||
<version>1.0</version> | ||
|
||
<description>display-dependency-updates should consider dependencyManagement in enabled profiles</description> | ||
|
||
<profiles> | ||
<profile> | ||
<id>test-profile</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>localhost</groupId> | ||
<artifactId>dummy-api</artifactId> | ||
<version>1.0</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
</profile> | ||
</profiles> | ||
|
||
</project> |
8 changes: 8 additions & 0 deletions
8
versions-maven-plugin/src/it/it-dependency-updates-report-issue-1191/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,8 @@ | ||
import groovy.xml.XmlSlurper | ||
|
||
def report = new XmlSlurper().parse(new File(basedir, "target/dependency-updates-report.xml")) | ||
assert !(report | ||
.dependencyManagements | ||
.dependencyManagement | ||
.find { node -> node.artifactId == 'dummy-api' }.isEmpty()) | ||
|
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.