-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
134 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
|
||
<parent> | ||
<groupId>com.smartcodeltd</groupId> | ||
<artifactId>sample-project-with-organization-pom</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>first</artifactId> | ||
|
||
</project> |
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 @@ | ||
invoker.name = Updates child versions but not org parent version | ||
invoker.description = https://github.com/smartcodeltd/release-candidate-maven-plugin/issues/5 | ||
|
||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:updateVersion | ||
invoker.buildResult = success | ||
invoker.mavenOpts = -Dbuild_number=2 | ||
invoker.debug = false | ||
invoker.nonRecursive = false |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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>com.smartcodeltd.parent</groupId> | ||
<artifactId>org-parent</artifactId> | ||
<version>1.5</version> | ||
|
||
<packaging>pom</packaging> | ||
|
||
</project> |
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,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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>com.smartcodeltd.parent</groupId> | ||
<artifactId>org-parent</artifactId> | ||
<version>1.5</version> | ||
<relativePath>./org-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.smartcodeltd</groupId> | ||
<artifactId>sample-project-with-organization-pom</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<packaging>pom</packaging> | ||
|
||
<modules> | ||
<module>first</module> | ||
</modules> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.smartcodeltd</groupId> | ||
<artifactId>release-candidate-maven-plugin</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<configuration> | ||
<releaseVersionFormat>{{ api_version }}-${build_number}</releaseVersionFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
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,9 @@ | ||
new GroovyShell().parse(new File('./src/it/integration_tests.groovy')).with { | ||
|
||
parent = parse(basedir, 'pom.xml') | ||
first_child = parse(basedir, 'first/pom.xml') | ||
|
||
expect parent.parent.version, "1.5", "version of the organization POM" | ||
expect parent.version, "1.0-2", "version of parent POM" | ||
expect first_child.parent.version, "1.0-2", "version of parent POM referenced from first child POM" | ||
} |
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