You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2022/10/03 09:50:00 UTC

[jira] [Commented] (RNG-182) Bill of Materials (BOM)

    [ https://issues.apache.org/jira/browse/RNG-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612233#comment-17612233 ] 

Alex Herbert commented on RNG-182:
----------------------------------

Added new module to deploy a BOM in commit:

84f3e81a99d429de52075f4a23d2e50197c1489c

The module uses a template BOM which is updated using maven resource filtering to obtain the project version and other properties. This is installed and deployed using customised install-file and deploy-file goals of the respective maven plugins.

The module is included in the site build and a simple page describing usage of the BOM has been added for the site and also the README page presented within github.

 

> Bill of Materials (BOM)
> -----------------------
>
>                 Key: RNG-182
>                 URL: https://issues.apache.org/jira/browse/RNG-182
>             Project: Commons RNG
>          Issue Type: New Feature
>          Components: client-api, core, sampling, simple
>    Affects Versions: 1.5
>            Reporter: Alex Herbert
>            Assignee: Alex Herbert
>            Priority: Minor
>             Fix For: 1.5
>
>
> In 1.5 the multi-module project rearranges a few methods to default interface methods in a different module. This is binary compatible. However it requires that all versions of the modules are matched. If the other modules are explicitly imported by a transitive dependency as a lower version then this will cause a runtime error due to missing methods.
>  
> I suggest we create a Bill of Materials (BOM) as a separate artifact to be deployed to maven for dependency management. Downstream users can then include this in their POM and all versions of the RNG modules would be matched.
> {noformat}
> <dependencyManagement>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.commons</groupId>
>             <artifactId>commons-rng-bom</artifactId>
>             <version>1.5</version>
>             <type>pom</type>
>             <scope>import</scope>
>         </dependency>
>     </dependencies>
> </dependencyManagement>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)