Skip to content

Update build.gradle - Update com.fasterxml.jackson.core dependencies to version 2.22(.1)#1712

Closed
github-pawo wants to merge 1 commit into
minio:masterfrom
github-pawo:patch-2
Closed

Update build.gradle - Update com.fasterxml.jackson.core dependencies to version 2.22(.1)#1712
github-pawo wants to merge 1 commit into
minio:masterfrom
github-pawo:patch-2

Conversation

@github-pawo

@github-pawo github-pawo commented Jul 21, 2026

Copy link
Copy Markdown

This will fix 10 vulnerabilities of jackson-databind in version 2.21.2 More: https://guide.sonatype.com/component/maven/com.fasterxml.jackson.core:jackson-databind/2.21.2/vulnerabilities

Summary by CodeRabbit

  • Chores
    • Updated underlying JSON processing components to newer versions.
    • Improves compatibility, stability, and access to upstream fixes.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Jackson dependency versions are updated in the root Gradle configuration: annotations to 2.22, and core and databind to 2.22.1.

Changes

Jackson dependency update

Layer / File(s) Summary
Update Jackson versions
build.gradle
The allprojects dependency declarations update Jackson annotations from 2.21 to 2.22 and Jackson core/databind from 2.21.2 to 2.22.1.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: balamurugana, minio-trusted

Poem

A rabbit hops through Gradle’s nest,
Jackson versions rise to their best.
Annotations, core, and databind align,
With fresh new numbers in the vine.
“Hop!” says the hare, “the build looks fine!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change by describing the Jackson dependency version bump in build.gradle.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@build.gradle`:
- Around line 52-54: Update the jackson-datatype-jsr310 dependency declaration
to version 2.22.1, matching the jackson-core and jackson-databind versions while
preserving the existing dependency configuration.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d7b08913-e272-4874-8d25-c3257fadbda3

📥 Commits

Reviewing files that changed from the base of the PR and between 942e2e5 and cb07af8.

📒 Files selected for processing (1)
  • build.gradle

Comment thread build.gradle
Comment on lines +52 to +54
api 'com.fasterxml.jackson.core:jackson-annotations:2.22'
api 'com.fasterxml.jackson.core:jackson-core:2.22.1'
api 'com.fasterxml.jackson.core:jackson-databind:2.22.1'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the relevant dependency declarations in build.gradle
grep -nE "jackson-(annotations|core|databind|datatype-jsr310)" build.gradle || true

echo
echo "Context around the jackson-datatype-jsr310 declaration:"
sed -n '235,260p' build.gradle

echo
echo "Context around the Jackson core/databind declarations:"
sed -n '45,60p' build.gradle

Repository: minio/minio-java

Length of output: 2081


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for any Jackson BOM, version constraints, or forced resolution rules
rg -n --hidden --glob '!*.git/*' \
  -e "jackson-bom" \
  -e "platform\\(" \
  -e "enforcedPlatform\\(" \
  -e "resolutionStrategy" \
  -e "force 'com\\.fasterxml\\.jackson" \
  -e "com\\.fasterxml\\.jackson" \
  build.gradle settings.gradle gradle.properties . || true

echo
echo "Files containing jackson references:"
git ls-files | rg '(^|/)build\.gradle$|(^|/)settings\.gradle$|(^|/)gradle\.properties$|jackson|gradle/libs\.versions\.toml'

Repository: minio/minio-java

Length of output: 11252


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the full dependency blocks that mention Jackson
awk '
  BEGIN { show=0; n=0 }
  /dependencies \{/ { n++; if (n<=3) {show=1; print "\n=== dependencies block " n " starts at line " NR " ===" } }
  show { print NR ":" $0 }
  /^\s*\}/ { if (show) { print "=== block ends at line " NR " ==="; show=0 } }
' build.gradle | sed -n '1,220p'

echo
echo "Search for resolution/constraint/substitution logic involving Jackson:"
rg -n -C 3 \
  "resolutionStrategy|constraints \{|force |dependencySubstitution|platform\(|enforcedPlatform\(|jackson-datatype-jsr310|jackson-annotations|jackson-core|jackson-databind" \
  build.gradle settings.gradle || true

Repository: minio/minio-java

Length of output: 2580


Align the Jackson module versions. build.gradle:249 still pins jackson-datatype-jsr310 to 2.21.2 while the other Jackson artifacts are on 2.22.1; keep the modules on the same release line to avoid runtime compatibility issues.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@build.gradle` around lines 52 - 54, Update the jackson-datatype-jsr310
dependency declaration to version 2.22.1, matching the jackson-core and
jackson-databind versions while preserving the existing dependency
configuration.

@balamurugana

Copy link
Copy Markdown
Member

already taken care in PR #1709

@github-pawo
github-pawo deleted the patch-2 branch July 21, 2026 06:11
@github-pawo

Copy link
Copy Markdown
Author

already taken care in PR #1709

Checked PR #1709
Here version 2.22.0 is used for jackson-core and jackson-databind (still has 3 medium vulnerabilties).
@balamurugana Can you please update it, so that we can close the vulnerabilities maybe with version 9.0.4?

Thank you in advance.

@balamurugana

Copy link
Copy Markdown
Member

already taken care in PR #1709

Checked PR #1709 Here version 2.22.0 is used for jackson-core and jackson-databind (still has 3 medium vulnerabilties). @balamurugana Can you please update it, so that we can close the vulnerabilities maybe with version 9.0.4?

Thank you in advance.

Yes, sure.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants