xmlunit / xmlunit

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

Provide a bill of materials (BOM) #268

Open bjmi opened 1 month ago

bjmi commented 1 month 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 2 weeks 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.