Skip to content

Commit

Permalink
fix(bom): fix bom imports in camunda-only-bom (#4628)
Browse files Browse the repository at this point in the history
* use type pom with scope import for camunda-spin-bom
* use type pom with scope import for camunda-commons-bom
* use type pom with scope import for camunda-connect-bom
* remove project.version from dependency declarations
* use camunda-root as parent for camunda-spin-bom, camunda-commons-bom, camunda-connect-bom



related to #4605
  • Loading branch information
cachescrubber authored Sep 20, 2024
1 parent 1b9de30 commit 7644178
Show file tree
Hide file tree
Showing 36 changed files with 60 additions and 140 deletions.
30 changes: 6 additions & 24 deletions bom/camunda-only-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,35 +213,15 @@
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-bom</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
<version>${project.version}</version>
<!-- Excluding dependencies that are shaded in camunda-spin-dataformat-all -->
<exclusions>
<exclusion>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
</exclusion>
<exclusion>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
</exclusions>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.camunda.template-engines</groupId>
Expand All @@ -252,6 +232,8 @@
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>

<!-- dmn engine dependencies
Expand Down
3 changes: 0 additions & 3 deletions clients/java/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-typed-values</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -108,7 +106,6 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down
6 changes: 4 additions & 2 deletions commons/bom/pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<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>

<!-- HEADS-UP: Do not use camunda-parent as parent,
it would introduce a cyclic dependency to this bom -->
<parent>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-parent</artifactId>
<relativePath>../../parent</relativePath>
<artifactId>camunda-root</artifactId>
<version>7.22.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<groupId>org.camunda.commons</groupId>
Expand Down
7 changes: 4 additions & 3 deletions commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-bom</artifactId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-parent</artifactId>
<relativePath>../parent</relativePath>
<version>7.22.0-SNAPSHOT</version>
<relativePath>bom</relativePath>
</parent>

<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-root</artifactId>
<name>camunda Commons - Root Pom</name>
<inceptionYear>2014</inceptionYear>
Expand Down
1 change: 0 additions & 1 deletion commons/typed-values/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-utils</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
6 changes: 4 additions & 2 deletions connect/bom/pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<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>

<!-- HEADS-UP: Do not use camunda-parent as parent,
it would introduce a cyclic dependency to this bom -->
<parent>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-parent</artifactId>
<relativePath>../../parent</relativePath>
<artifactId>camunda-root</artifactId>
<version>7.22.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<groupId>org.camunda.connect</groupId>
Expand Down
15 changes: 4 additions & 11 deletions connect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-bom</artifactId>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-parent</artifactId>
<relativePath>../parent</relativePath>
<version>7.22.0-SNAPSHOT</version>
<relativePath>bom</relativePath>
</parent>

<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-root</artifactId>
<name>Camunda Platform - connect - root</name>
<inceptionYear>2014</inceptionYear>
Expand Down Expand Up @@ -35,14 +36,6 @@
<dependencyManagement>
<dependencies>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
Expand Down
1 change: 0 additions & 1 deletion distro/run/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
4 changes: 0 additions & 4 deletions distro/tomcat/assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -122,13 +121,11 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -140,7 +137,6 @@
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-connectors-all</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.camunda.connect</groupId>
Expand Down
4 changes: 0 additions & 4 deletions distro/wildfly/modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom-jakarta</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -72,13 +70,11 @@
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-http-client</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-soap-http-client</artifactId>
<version>${project.version}</version>
</dependency>

<!-- script engine dependencies -->
Expand Down
4 changes: 0 additions & 4 deletions distro/wildfly26/modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -72,13 +70,11 @@
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-http-client</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-soap-http-client</artifactId>
<version>${project.version}</version>
</dependency>

<!-- script engine dependencies -->
Expand Down
2 changes: 0 additions & 2 deletions engine-dmn/engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-utils</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-typed-values</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
1 change: 0 additions & 1 deletion engine-dmn/feel-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-typed-values</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

Expand Down
2 changes: 0 additions & 2 deletions engine-dmn/feel-juel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-typed-values</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
3 changes: 0 additions & 3 deletions engine-plugins/connect-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,17 @@
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-http-client</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-soap-http-client</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down
1 change: 0 additions & 1 deletion engine-plugins/identity-ldap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
<version>${project.version}</version>
</dependency>

<!-- LDAP Libraries to start test server -->
Expand Down
1 change: 0 additions & 1 deletion engine-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-testing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 0 additions & 4 deletions engine-plugins/spin-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-core</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -36,14 +35,12 @@
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-json-jackson</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-xml-dom</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -128,7 +125,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-testing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 0 additions & 2 deletions engine-rest/engine-rest-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -194,7 +193,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-testing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down
2 changes: 0 additions & 2 deletions engine-rest/engine-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-logging</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -218,7 +217,6 @@
<dependency>
<groupId>org.camunda.commons</groupId>
<artifactId>camunda-commons-testing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

Expand Down
Loading

0 comments on commit 7644178

Please sign in to comment.