From 65d30ee65e110e0c241c33b34907874b6271f356 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Wed, 25 Jun 2025 22:09:48 +0200 Subject: [PATCH] fix: Define version of `error_prone_annotations` in parent POM This change explicitly defines the version of the `error_prone_annotations` dependency in the `log4j` parent POM. Previously, the version was inherited via the `error-prone.version` property from `logging-parent`. However, because the `log4j-bom` POM is flattened during publication, this property no longer resolves in consumer projects. Fixes #3779 --- log4j-parent/pom.xml | 3 ++- src/changelog/.2.x.x/3758_fix_jspecify_dep.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml index a0b8f4b0195..f4e56806a27 100644 --- a/log4j-parent/pom.xml +++ b/log4j-parent/pom.xml @@ -80,6 +80,7 @@ 1.2.15 3.4.4 0.9.0 + 2.38.0 7.0.5 4.0.27 33.4.8-jre @@ -1109,7 +1110,7 @@ com.google.errorprone error_prone_annotations - ${error-prone.version} + ${error-prone-annotations.version} org.osgi diff --git a/src/changelog/.2.x.x/3758_fix_jspecify_dep.xml b/src/changelog/.2.x.x/3758_fix_jspecify_dep.xml index a4824608390..78dba40899a 100644 --- a/src/changelog/.2.x.x/3758_fix_jspecify_dep.xml +++ b/src/changelog/.2.x.x/3758_fix_jspecify_dep.xml @@ -6,7 +6,8 @@ https://logging.apache.org/xml/ns/log4j-changelog-0.xsd" type="fixed"> + - Move `jspecify.version` Maven property and `java8-tests` profile from `log4j-bom` to `log4j-parent`, since the former gets trimmed before deployment. + Fix version resolution of `jspecify` and `error_prone_annotations` dependencies in published POM files.