Skip to content

Commit

Permalink
Add bill-of-materials
Browse files Browse the repository at this point in the history
We are producing two distinct dependencies, hence exporting a BOM
makes sense. This will allow us to add more artifacts without burdening
downstreams with versions.

Signed-off-by: Robert Varga <[email protected]>
  • Loading branch information
rovarga committed Sep 10, 2018
1 parent ad64cd4 commit 1bcb123
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
49 changes: 49 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
<!--
(C) Copyright 2018 Pantheon Technologies, s.r.o. and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
<version>4.0.0-SNAPSHOT</version>
<relativePath/>
</parent>

<groupId>tech.pantheon.triemap</groupId>
<artifactId>bom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>tech.pantheon.triemap</groupId>
<artifactId>triemap</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>tech.pantheon.triemap</groupId>
<artifactId>triemap</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>xml</type>
<classifier>features</classifier>
</dependency>
</dependencies>
</dependencyManagement>
</project>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<description>Java implementation of a concurrent trie hash map from Scala collections library</description>

<modules>
<module>bom</module>
<module>pt-triemap</module>
<module>triemap</module>
</modules>
Expand Down
14 changes: 13 additions & 1 deletion pt-triemap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,23 @@
<name>Pantheon Technologies :: TrieMap :: Feature</name>
<description>Concurrent Hash-trie Map</description>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>tech.pantheon.triemap</groupId>
<artifactId>bom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>


<dependencies>
<dependency>
<groupId>tech.pantheon.triemap</groupId>
<artifactId>triemap</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>

0 comments on commit 1bcb123

Please sign in to comment.