gitgabrio commented on code in PR #3538:
URL:
https://github.com/apache/incubator-kie-tools/pull/3538#discussion_r3078069398
##########
packages/maven-quarkus-bom/package.json:
##########
@@ -0,0 +1,39 @@
+{
+ "private": true,
+ "name": "@kie-tools/maven-quarkus-bom",
Review Comment:
I would suggest to keep the name of the folder and the name of the artifacts
consistent, to make things easier to maintain (it is also a sort of good-rule
in the maven world, even if optional)
##########
examples/process-accelerator/pom.xml:
##########
@@ -25,9 +25,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie</groupId>
- <artifactId>kie-tools-maven-base</artifactId>
+ <artifactId>kie-tools-quarkus-bom</artifactId>
Review Comment:
Here the parent artifact is `kie-tools-quarkus-bom` , but elsewhere it is
`kie-tools-maven-quarkus-bom`; I think they should be the same; beside, if
there is one single name to identify the same object (the artifactId and the
folder) things would be easier to follow, IMO
##########
examples/process-business-calendar/pom.xml:
##########
@@ -27,9 +27,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie</groupId>
- <artifactId>kie-tools-maven-base</artifactId>
+ <artifactId>kie-tools-maven-quarkus-bom</artifactId>
Review Comment:
Here the parent artifact is `kie-tools-maven-quarkus-bom `, but elsewhere it
is `kie-tools-quarkus-bom`; I think they should be the same
(`kie-tools-quarkus-bom`)
##########
repo/MANUAL.md:
##########
@@ -226,6 +226,28 @@ All Maven-based packages should declare it as a
`dependency` on their `package.j
</parent>
```
+In case of Maven-based modules based on Quarkus, the following parent should
be used:
+
+```xml
+<parent>
+ <groupId>org.kie</groupId>
+ <artifactId>kie-tools-maven-quarkus-bom</artifactId>
Review Comment:
IINW, this should be kie-tools-quarkus-bom
##########
packages/maven-quarkus-bom/pom.xml:
##########
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you 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
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+>
+ <parent>
+ <groupId>org.kie</groupId>
+ <artifactId>kie-tools-maven-base</artifactId>
+ <version>${revision}</version>
+ <relativePath>../maven-base/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>kie-tools-quarkus-bom</artifactId>
+ <packaging>pom</packaging>
+
+ <name>KIE Tools :: Quarkus BOM</name>
+ <description>Bill of Materials for KIE Tools Quarkus-based
projects</description>
+
+ <properties>
+ <version.io.quarkus>3.27.2</version.io.quarkus>
Review Comment:
🤔 I do not really like it, TBH....
I've the impression it is better to set `kogito-apps-quarkus-bom` so that:
1. we do not need to keep the version in sync all over different repos
2. we automatically inherit the plugin configuration
Then, kie-tools-maven-base could be imported; importing it, would require to
duplicate some properties or configuration, but maybe the burden to maintain
such duplication in the same repo is easier.
##########
packages/maven-base/pom.xml:
##########
@@ -122,27 +122,15 @@
<version.maven.surefire.plugin>3.5.0</version.maven.surefire.plugin>
<!-- Apache KIE -->
- <version.org.kie.kogito>999-20260324-local</version.org.kie.kogito>
-
- <!-- Quarkus -->
- <version.quarkus>3.27.2</version.quarkus>
+ <version.org.kie.kogito>999-20260414-local</version.org.kie.kogito>
<!-- 3rd party dependencies -->
- <version.junit>4.13.2</version.junit>
-
<version.org.apache.commons.commons-compress>1.28.0</version.org.apache.commons.commons-compress>
<version.org.iq80.snappy>0.5</version.org.iq80.snappy>
<version.org.apache.mime4j>0.8.12</version.org.apache.mime4j>
- <version.org.freemarker>2.3.34</version.org.freemarker>
- <version.org.assertj>3.27.7</version.org.assertj>
- <version.org.junit.jupiter>5.13.4</version.org.junit.jupiter>
- <version.org.mockito>5.18.0</version.org.mockito>
<version.org.kie.j2cl.tools.yaml.mapper>0.4</version.org.kie.j2cl.tools.yaml.mapper>
- <version.io.netty>4.1.131.Final</version.io.netty>
<!-- These versions are overrides for transitive dependencies, to fix
security vulnerabilities.
They need to be checked with Quarkus and Spring Boot upgrades and
eventually removed, if they are not needed anymore. -->
- <version.tomcat.embed.core>10.1.54</version.tomcat.embed.core>
- <version.apache.commons.lang3>3.18.0</version.apache.commons.lang3>
<version.angus.mail>2.0.5</version.angus.mail>
Review Comment:
This is already defined in kie-parent, so it should be inherited
##########
packages/kogito-jobs-service-postgresql-image/resources/app/pom.xml:
##########
@@ -25,7 +25,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie</groupId>
- <artifactId>kie-tools-maven-base</artifactId>
+ <artifactId>kie-tools-quarkus-bom</artifactId>
<version>${revision}</version>
<relativePath>../../node_modules/@kie-tools/maven-base/pom.xml</relativePath>
Review Comment:
RelativePath to be updated
##########
packages/maven-base/pom.xml:
##########
Review Comment:
This is already defined in kie-parent, so it should be inherited
##########
packages/maven-quarkus-bom/maven-quarkus-bom.iml:
##########
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4">
Review Comment:
IINW, IDE specific files should not be versioned
##########
repo/MANUAL.md:
##########
@@ -226,6 +226,28 @@ All Maven-based packages should declare it as a
`dependency` on their `package.j
</parent>
```
+In case of Maven-based modules based on Quarkus, the following parent should
be used:
+
+```xml
+<parent>
+ <groupId>org.kie</groupId>
+ <artifactId>kie-tools-maven-quarkus-bom</artifactId>
+ <version>${revision}</version>
+
<relativePath>./node_modules/@kie-tools/maven-quarkus-bom/pom.xml</relativePath>
+</parent>
+```
+
+In case of Maven-based modules based on Spring Boot, the following parent
should be used:
+
+```xml
+<parent>
+ <groupId>org.kie</groupId>
+ <artifactId>kie-tools-maven-spring-boot-bom</artifactId>
Review Comment:
IINW, this should be kie-tools-spring-boot-bom
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]