xmlunit / xmlunit

XMLUnit for Java 2.x
https://www.xmlunit.org/
Apache License 2.0
297 stars 76 forks source link

Provide a bill of materials (BOM) #268

Open bjmi opened 3 months ago

bjmi commented 3 months ago

I figured that there is a number of xmlunit artifacts, so it might be useful to provide a BOM (Bill Of Materials) that lists all versions of all artifacts in a central place.

Such a thing could then be consumed in a Maven multi project build through

<dependencyManagement>
    <dependency>
        <groupId>org.xmlunit</groupId>
        <artifactId>xmlunit-bom</artifactId>
        <version>${xmlunit.version}</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>
    [...]
</dependencyManagement>

and this could be referenced in individual module files like so:

<dependencies>
    <dependency>
      <groupId>org.xmlunit</groupId>
      <artifactId>xmlunit-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.xmlunit</groupId>
        <artifactId>xmlunit-matchers</artifactId>
    </dependency>
    [...]
</dependencies>

Examples:

Creating and publishing such a BOM would help a lot. Thanks!

bodewig commented 3 months ago

I'm not convinced anybody would really benefit from it. I assume people will use the core project and maybe one of the AssertJ or Hamcrest libraries, but almost nobody is going to use more than two. I may of course be wrong.