From 04e3b5c20d2250d65dc6acacf24814643670eaef Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Fri, 14 Aug 2026 16:57:33 +0200 Subject: [PATCH 1/7] BOM added --- README.md | 21 ++++++++++++ cf-java-logging-support-bom/pom.xml | 53 +++++++++++++++++++++++++++++ pom.xml | 1 + 3 files changed, 75 insertions(+) create mode 100644 cf-java-logging-support-bom/pom.xml diff --git a/README.md b/README.md index cefbeb99..80b7037b 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,27 @@ This feature only depends on the servlet API which you have included in your POM about the *servlet filter* feature (like e.g. how to adjust the web.xml) in the [Wiki](https://github.com/SAP/cf-java-logging-support/wiki/Instrumenting-Servlets). +### Bill of Materials (BOM) + +If you want to use multiple features, you may want to consider using the provided BOM (Bill of Materials) to avoid +version conflicts. You can find the BOM in the `cf-java-logging-support-bom` module. To use it, add the following to your POM: + +``` xml + + + + com.sap.hcp.cf.logging + cf-java-logging-support-bom + ${cf-java-logging-support.version} + pom + import + + + +``` + +Then you can control the version of all features by just changing the property `cf-java-logging-support.version` in your POM an omitting any version in your `cf-java-logging-support` dependencies. Please note that our BOM manages solely the versions of the `cf-java-logging-support` features, but not the versions of the logging implementation backends or other used libraries (e.g. logback or log4j2). + ## Implementation variants and logging configurations The *core* feature (on which all other features rely) is just using the `org.slf4j` API, but to actually get logs diff --git a/cf-java-logging-support-bom/pom.xml b/cf-java-logging-support-bom/pom.xml new file mode 100644 index 00000000..fb7e01b8 --- /dev/null +++ b/cf-java-logging-support-bom/pom.xml @@ -0,0 +1,53 @@ + + 4.0.0 + + cf-java-logging-support-bom + pom + + cf-java-logging-support-bom + + + com.sap.hcp.cf.logging + cf-java-logging-support-parent + 4.2.0 + ../pom.xml + + + + + + com.sap.hcp.cf.logging + cf-java-logging-support-core + ${project.version} + + + com.sap.hcp.cf.logging + cf-java-logging-support-logback + ${project.version} + + + com.sap.hcp.cf.logging + cf-java-logging-support-log4j2 + ${project.version} + + + com.sap.hcp.cf.logging + cf-java-logging-support-servlet + ${project.version} + + + com.sap.hcp.cf.logging + cf-java-logging-support-servlet-dynlog-jwt + ${project.version} + + + + com.sap.hcp.cf.logging + cf-java-logging-support-opentelemetry-agent-extension + ${project.version} + + + + + diff --git a/pom.xml b/pom.xml index 9aedaa84..ec92145b 100644 --- a/pom.xml +++ b/pom.xml @@ -99,6 +99,7 @@ + cf-java-logging-support-bom cf-java-logging-support-core cf-java-logging-support-logback cf-java-logging-support-log4j2 From f8a1dbb56c79c9c00637d0c6ac08d296aa52210c Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Wed, 16 Sep 2026 13:17:55 +0200 Subject: [PATCH 2/7] remove telemetry-agent-extension from BOM Co-authored-by: Karsten Schnitter --- cf-java-logging-support-bom/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cf-java-logging-support-bom/pom.xml b/cf-java-logging-support-bom/pom.xml index fb7e01b8..2c2f460c 100644 --- a/cf-java-logging-support-bom/pom.xml +++ b/cf-java-logging-support-bom/pom.xml @@ -41,12 +41,6 @@ cf-java-logging-support-servlet-dynlog-jwt ${project.version} - - - com.sap.hcp.cf.logging - cf-java-logging-support-opentelemetry-agent-extension - ${project.version} - From 900243630c861ef138d2ad97590e6f914d2d8cd0 Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Wed, 16 Sep 2026 13:18:49 +0200 Subject: [PATCH 3/7] better phrasing Co-authored-by: Karsten Schnitter --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80b7037b..dbb6ddaa 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ version conflicts. You can find the BOM in the `cf-java-logging-support-bom` mod ``` -Then you can control the version of all features by just changing the property `cf-java-logging-support.version` in your POM an omitting any version in your `cf-java-logging-support` dependencies. Please note that our BOM manages solely the versions of the `cf-java-logging-support` features, but not the versions of the logging implementation backends or other used libraries (e.g. logback or log4j2). +You can control the version of all features by just changing the property `cf-java-logging-support.version` in your POM an omitting any version in your `cf-java-logging-support` dependencies. Please note that our BOM manages solely the versions of the `cf-java-logging-support` features, but not the versions of the logging implementation backends or other used libraries (e.g. logback or log4j2). ## Implementation variants and logging configurations From 93a307d15c956d91f38e54013737671c22c07429 Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Wed, 16 Sep 2026 13:19:30 +0200 Subject: [PATCH 4/7] add artefact description for the BOM Co-authored-by: Karsten Schnitter --- cf-java-logging-support-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-java-logging-support-bom/pom.xml b/cf-java-logging-support-bom/pom.xml index 2c2f460c..fac052b8 100644 --- a/cf-java-logging-support-bom/pom.xml +++ b/cf-java-logging-support-bom/pom.xml @@ -4,7 +4,7 @@ cf-java-logging-support-bom pom - + Bill of Materials for cf-java-logging-support dependencies cf-java-logging-support-bom From c30f83e18c2362ee7a9b86bf7893b66802438817 Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Wed, 16 Sep 2026 13:21:41 +0200 Subject: [PATCH 5/7] typo fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbb6ddaa..4fb1c31e 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ version conflicts. You can find the BOM in the `cf-java-logging-support-bom` mod ``` -You can control the version of all features by just changing the property `cf-java-logging-support.version` in your POM an omitting any version in your `cf-java-logging-support` dependencies. Please note that our BOM manages solely the versions of the `cf-java-logging-support` features, but not the versions of the logging implementation backends or other used libraries (e.g. logback or log4j2). +You can control the version of all features by just changing the property `cf-java-logging-support.version` in your POM and omitting any version in your `cf-java-logging-support` dependencies. Please note that our BOM manages solely the versions of the `cf-java-logging-support` features, but not the versions of the logging implementation backends or other used libraries (e.g. logback or log4j2). ## Implementation variants and logging configurations From c79bbb72f7129e3ea1af5bac8217c49afa8e32cb Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Wed, 16 Sep 2026 13:28:58 +0200 Subject: [PATCH 6/7] renamed cf-logging-version property to cf-java-logging-support.version --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8aabf853..ec93bec5 100644 --- a/README.md +++ b/README.md @@ -65,12 +65,12 @@ All in all, you should do the following: 4. Adjust your logging configuration accordingly. Let's say you want to make use of the *servlet filter* feature, then you need to add the following dependency to your -POM with property `cf-logging-version` referring to the latest nexus version (currently `4.3.0`): +POM with a property `cf-java-logging-support.version`, referring to the latest released version (currently `4.3.0`): ```xml - 4.3.0 + 4.3.0 ``` @@ -78,7 +78,7 @@ POM with property `cf-logging-version` referring to the latest nexus version (cu com.sap.hcp.cf.logging cf-java-logging-support-servlet - ${cf-logging-version} + ${cf-java-logging-support.version} ``` @@ -124,7 +124,7 @@ corresponding dependencies in your POM file: com.sap.hcp.cf.logging cf-java-logging-support-logback - ${cf-logging-version} + ${cf-java-logging-support.version} @@ -140,7 +140,7 @@ corresponding dependencies in your POM file: com.sap.hcp.cf.logging cf-java-logging-support-log4j2 - ${cf-logging-version} + ${cf-java-logging-support.version} org.apache.logging.log4j From 03227cdcbcd46f253249d7bdd13ed667be12584e Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Thu, 17 Sep 2026 17:23:29 +0200 Subject: [PATCH 7/7] Update cf-java-logging-support-bom version to 4.3.0 Co-authored-by: Karsten Schnitter --- cf-java-logging-support-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cf-java-logging-support-bom/pom.xml b/cf-java-logging-support-bom/pom.xml index fac052b8..385fe001 100644 --- a/cf-java-logging-support-bom/pom.xml +++ b/cf-java-logging-support-bom/pom.xml @@ -10,7 +10,7 @@ com.sap.hcp.cf.logging cf-java-logging-support-parent - 4.2.0 + 4.3.0 ../pom.xml