Skip to content

Update fasterxml#3227

Merged
malliaridis merged 5 commits intoapache:mainfrom
solrbot:renovate/fasterxml
Sep 13, 2025
Merged

Update fasterxml#3227
malliaridis merged 5 commits intoapache:mainfrom
solrbot:renovate/fasterxml

Conversation

@solrbot
Copy link
Copy Markdown
Collaborator

@solrbot solrbot commented Mar 1, 2025

This PR contains the following updates:

Package Type Update Change
com.fasterxml.jackson.dataformat:jackson-dataformat-smile dependencies minor 2.18.2 -> 2.20.0
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor dependencies minor 2.18.2 -> 2.20.0
com.fasterxml.jackson.core:jackson-databind (source) dependencies minor 2.18.2 -> 2.20.0
com.fasterxml.jackson.core:jackson-core dependencies minor 2.18.2 -> 2.20.0
com.fasterxml.jackson.core:jackson-annotations (source) dependencies minor 2.18.2 -> 2.20
com.fasterxml.jackson:jackson-bom dependencies minor 2.18.2 -> 2.20.0

Configuration

📅 Schedule: Branch creation - Every minute ( * * * * * ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot

@solrbot solrbot changed the title Update fasterxml to v2.18.3 chore(deps): update fasterxml to v2.18.3 Mar 21, 2025
@solrbot solrbot changed the title chore(deps): update fasterxml to v2.18.3 Update fasterxml to v2.18.3 Mar 22, 2025
@solrbot solrbot changed the title Update fasterxml to v2.18.3 chore(deps): update fasterxml to v2.18.3 Mar 24, 2025
@solrbot solrbot force-pushed the renovate/fasterxml branch from e675eb8 to 9ea5d17 Compare March 26, 2025 01:06
@solrbot solrbot changed the title chore(deps): update fasterxml to v2.18.3 Update fasterxml to v2.18.3 Apr 3, 2025
@solrbot solrbot force-pushed the renovate/fasterxml branch from 9ea5d17 to 23fd002 Compare April 9, 2025 20:16
@solrbot solrbot force-pushed the renovate/fasterxml branch from 23fd002 to c445258 Compare April 25, 2025 00:56
@solrbot solrbot changed the title Update fasterxml to v2.18.3 Update fasterxml to v2.19.0 Apr 25, 2025
@solrbot solrbot force-pushed the renovate/fasterxml branch from c445258 to 1cedc0b Compare May 26, 2025 12:49
@solrbot solrbot force-pushed the renovate/fasterxml branch from 1cedc0b to 2bacc0d Compare June 14, 2025 01:33
@solrbot solrbot changed the title Update fasterxml to v2.19.0 Update fasterxml Jun 14, 2025
@github-actions github-actions Bot removed the admin-ui label Jun 14, 2025
@janhoy
Copy link
Copy Markdown
Contributor

janhoy commented Sep 1, 2025

@malliaridis Do you want to handle this and related / dependent deps? I have scheduled it for rebase on next solrbot run to clean up the conflict.

@solrbot
Copy link
Copy Markdown
Collaborator Author

solrbot commented Sep 3, 2025

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: undefined
Command failed: ./gradlew resolveAndLockAll --write-locks

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script '/tmp/renovate/repos/github/apache/solr/gradle/validation/dependencies.gradle' line: 101

* What went wrong:
Execution failed for task ':solr:api:resolveAndLockAll'.
> Could not resolve all files for configuration ':solr:api:apiHelper'.
   > Could not find com.fasterxml.jackson.core:jackson-annotations:2.20.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.20.0/jackson-annotations-2.20.0.pom
     Required by:
         project :solr:api
         project :solr:api > project :platform

* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script '/tmp/renovate/repos/github/apache/solr/gradle/validation/dependencies.gradle' line: 101

* What went wrong:
Execution failed for task ':solr:benchmark:resolveAndLockAll'.
> Could not resolve all files for configuration ':solr:benchmark:compileClasspath'.
   > Could not find com.fasterxml.jackson.core:jackson-annotations:2.20.0.
     Required by:
         project :solr:benchmark > project :solr:test-framework > project :solr:api
         project :solr:benchmark > project :solr:test-framework > project :solr:core > project :platform

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 14s

File name: undefined
Command failed: ./gradlew updateLicenses

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':solr:api:collectJarInfos'.
> Could not resolve all dependencies for configuration ':solr:api:jarValidation'.
   > Did not resolve 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' which is part of the dependency lock state
   > Could not resolve com.fasterxml.jackson.core:jackson-annotations:2.20.0.
     Required by:
         project :solr:api
         project :solr:api > project :platform
         project :solr:api > project :solr:test-framework > project :solr:core
         project :solr:api > project :solr:test-framework > project :solr:solrj
      > Cannot find a version of 'com.fasterxml.jackson.core:jackson-annotations' that satisfies the version constraints:
           Dependency path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-annotations:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-annotations:{strictly 2.18.2}' because of the following reason: dependency was locked to version '2.18.2'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:api:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.20.0'
           Dependency path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.20'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:solrj:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0' (runtimeElements) --> 'com.fasterxml.jackson:jackson-bom:2.18.2' (platform-runtime) --> 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
           Dependency path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.glassfish.jersey.media:jersey-media-json-jackson:3.1.11' (runtime) --> 'com.fasterxml.jackson.core:jackson-annotations:2.18.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.glassfish.jersey.media:jersey-media-json-jackson:3.1.11' (runtime) --> 'com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.18.2' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'

   > Could not resolve com.fasterxml.jackson.core:jackson-databind:2.20.0.
     Required by:
         project :solr:api
         project :solr:api > project :platform
         project :solr:api > project :solr:test-framework > project :solr:core
         project :solr:api > project :solr:test-framework > project :solr:solrj
      > Cannot find a version of 'com.fasterxml.jackson.core:jackson-databind' that satisfies the version constraints:
           Dependency path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-databind:{strictly 2.18.2}' because of the following reason: dependency was locked to version '2.18.2'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache:platform:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:solrj:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'com.fasterxml.jackson.core:jackson-databind:2.20.0' (runtimeElements) --> 'com.fasterxml.jackson:jackson-bom:2.18.2' (platform-runtime) --> 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
           Dependency path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.glassfish.jersey.media:jersey-media-json-jackson:3.1.11' (runtime) --> 'com.fasterxml.jackson.core:jackson-databind:2.18.0'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.18.2' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.18.2' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
           Constraint path 'org.apache.solr:api:10.0.0-SNAPSHOT' --> 'org.apache.solr:test-framework:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.apache.solr:core:10.0.0-SNAPSHOT' (runtimeElements) --> 'org.glassfish.jersey.media:jersey-media-json-jackson:3.1.11' (runtime) --> 'com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.18.2' (runtimeElements) --> 'com.fasterxml.jackson.core:jackson-databind:2.18.2'

> There are 7 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 14s

@malliaridis
Copy link
Copy Markdown
Contributor

I will try to review this ideally by the end of this week.

Copy link
Copy Markdown
Contributor

@malliaridis malliaridis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now. I believe the crave.io issues are not related to the dependency updates, but I will run it once more and merge it afterwards.

@malliaridis
Copy link
Copy Markdown
Contributor

Btw. minimum supported Guava version is set to 22.0, but I believe it does not have any impact here or in branch_9x.

@solrbot
Copy link
Copy Markdown
Collaborator Author

solrbot commented Sep 10, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Comment thread gradle/libs.versions.toml Outdated
@malliaridis
Copy link
Copy Markdown
Contributor

@janhoy I have looked into the current test failures, and it seems that one test is related to CBOR serialization, part of the fasterxml databind module. It fails because the current bytes of the serialized object do not match the expected value (actual is lower). I am not sure if this is a (breaking or not) change caused by the update. Updating the expected bytes to the actual bytes fixes the test.

Some other tests fail as well, but it seems it is not related to the update. I will try to troubleshoot a bit more, but I believe this would be the final state.

Comment thread solr/api/build.gradle
dependencies {
api platform(project(":platform"))
swaggerDeps platform(project(":platform"))
api platform(libs.fasterxml.jackson.bom)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised to see jackson here, as I expect that our platform's role is to be all encompassing (to include jackson).

Copy link
Copy Markdown
Contributor

@malliaridis malliaridis Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember correct, the issue comes from the way BOMs have to be added to resolve dependency versions. Our platform module goes through our libs.versions.toml file and adds all dependencies via api [dependency]. Later, the module is added as [configuration] platform(project(":platform")) to resolve dependencies.

However, in order for BOMs to take effect in dependency resolution, they have to be added via platform([bom-dependency]). Since we cannot reliably distinguish BOMs from other dependencies in our current setup, we have to manually add them.

We might be able to enlist the BOM dependencies in a seperate toml file and iterate over it in our platform module, so that we can run a different logic in platform/build.gradle, something like:

// platform/build.gradle

plugins {
    id("java-platform")
}

dependencies {
    constraints {
        // Current logic
        def versionCatalog = rootProject.extensions
                .getByType(VersionCatalogsExtension).named("libs")
        versionCatalog.libraryAliases.forEach { alias ->
            def library = versionCatalog.findLibrary(alias)
            api library.get()
        }
        
        // Additional new logic
        def bomCatalog = rootProject.extensions
                .getByType(VersionCatalogsExtension).named("bom") // <-- reference different toml file
        bomCatalog.libraryAliases.forEach { alias ->
            def library = bomCatalog.findLibrary(alias)
            api platform(library.get()) // <-- this line makes the difference
        }
    }
}

And then add only BOM dependencies to gradle/bom.versions.toml:

[versions]
amazon-awssdk = "2.32.31"
fasterxml = "2.20.0"
google-cloud-bom = "0.224.0"
grpc = "1.65.1"
netty = "4.2.6.Final"
opentelemetry = "1.56.0"

[libraries]
amazon-awssdk-bom = { module = "software.amazon.awssdk:bom", version.ref = "amazon-awssdk" }
fasterxml-jackson-bom = { module = "com.fasterxml.jackson:jackson-bom", version.ref = "fasterxml" }
google-cloud-bom = { module = "com.google.cloud:google-cloud-bom", version.ref = "google-cloud-bom" }
grpc-bom = { module = "io.grpc:grpc-bom", version.ref = "grpc" }
netty-bom = { module = "io.netty:netty-bom", version.ref = "netty" }
opentelemetry-bom = { module = "io.opentelemetry:opentelemetry-bom", version.ref = "opentelemetry" }

I did not have enough time back then to experiment with that, but it may allow us to remove redundant dependencies to BOMs in our modules, like the one you pointed at.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that thorough response Christos.
Background: I've been looking at Solr's techniques to apply some techniques elsewhere.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOLR-18003 also shows a case where the BOM version resolution fails and we have to intervene.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants