-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added bom * no need for this any more! * Automated readme header
- Loading branch information
1 parent
f433c41
commit c4a5fd9
Showing
21 changed files
with
284 additions
and
63 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
<!-- title start --> | ||
|
||
# bom | ||
|
||
Bill of materials | ||
|
||
|
||
|
||
* [../flow](https://github.com/Mastercard/flow) Testing framework | ||
|
||
<!-- title end --> | ||
|
||
## Overview | ||
|
||
This pom-only project offers a mechanism to coordinate the versions of the other flow artifacts that you consume. | ||
|
||
## Usage | ||
|
||
Import the bom into the `/project/dependencyManagement` section of your pom file: | ||
|
||
```xml | ||
<project> | ||
... | ||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<!-- controls flow artifact versions --> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>bom</artifactId> | ||
<version>x.y.x</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
... | ||
<project> | ||
``` | ||
The latest release version is [![Maven Central](https://img.shields.io/maven-central/v/com.mastercard.test.flow/parent)](https://search.maven.org/search?q=com.mastercard.test.flow). | ||
|
||
The versions of other flow artifacts in your `/project/dependencies` section will then automatically match that of the bom: | ||
|
||
```xml | ||
<project> | ||
... | ||
<dependencies> | ||
<dependency> | ||
<!-- flow construction. Version controlled by bom import --> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>builder</artifactId> | ||
</dependency> | ||
<dependency> | ||
<!-- flow grouping. Version controlled by bom import --> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>group</artifactId> | ||
</dependency> | ||
<dependency> | ||
<!-- JSON messages. Version controlled by bom import --> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>message-json</artifactId> | ||
</dependency> | ||
</dependencies> | ||
... | ||
<project> | ||
``` | ||
|
||
At some point you'll find yourself having to track down the source of a dependency version, a task that is complicated by the use of bom imports. | ||
Running `mvn help:effective-pom -Dverbose=true` will be instructive in such cases. |
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,132 @@ | ||
<?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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>0.0.16-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>bom</artifactId> | ||
<packaging>pom</packaging> | ||
<description>Bill of materials</description> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>api</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>builder</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>message-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>message-text</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>message-json</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>message-http</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>message-sql</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>message-web</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>message-xml</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>model</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>validation-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>validation-junit4</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>validation-junit5</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>coppice</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>report-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>assert-filter</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>assert-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>assert-junit4</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.mastercard.test.flow</groupId> | ||
<artifactId>assert-junit5</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
</dependencyManagement> | ||
</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
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.