Skip to content

Conversation

Copy link

Copilot AI commented Sep 9, 2025

This PR updates all Jackson dependencies from version 2.19.2 to 2.20.0 across the project.

Changes Made

  1. Updated Jackson BOM version in dependencyManagement/build.gradle.kts from 2.19.2 to 2.20.0
  2. Updated explicit Jackson databind dependency in ibm-mq-metrics/build.gradle.kts from 2.19.2 to 2.20.0
  3. Fixed Jackson 2.20.0 deprecation in aws-xray/src/main/java/io/opentelemetry/contrib/awsxray/XraySamplerClient.java by replacing the deprecated setSerializationInclusion() method with setDefaultPropertyInclusion()

Compatibility

Jackson 2.20.0 introduced a deprecation warning for the ObjectMapper.setSerializationInclusion(Include) method, which has been replaced with setDefaultPropertyInclusion(Include). This change maintains the same functionality while using the non-deprecated API.

All existing tests pass with the updated Jackson version, confirming backward compatibility for the project's usage patterns.

Verification

  • ✅ All Jackson-dependent modules compile successfully
  • ✅ All tests pass for aws-resources, aws-xray, and ibm-mq-metrics modules
  • ✅ Code formatting applied via spotlessApply
  • ✅ Full build verification completed

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • example.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -Dorg.gradle.internal.worker.tmpdir=/home/REDACTED/work/opentelemetry-java-contrib/opentelemetry-java-contrib/maven-extension/build/tmp/test/work -javaagent:/home/REDACTED/work/opentelemetry-java-contrib/opentelemetry-java-contrib/maven-extension/build/tmp/.cache/expanded/zip_9892ccb804f78c0637616b68610d363f/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,includes=io/opentelemetry/contrib/**,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false @/home/REDACTED/.gradle/.tmp/gradle-worker-classpath1447545402855283646txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -ea worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 21' (dns block)
  • scans-in.gradle.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-9.0.0-bin/d6wjpkvcgsg3oed0qlfss3wgl/gradle-9.0.0/lib/gradle-daemon-main-9.0.0.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-9.0.0-bin/d6wjpkvcgsg3oed0qlfss3wgl/gradle-9.0.0/lib/agents/gradle-instrumentation-agent-9.0.0.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 9.0.0 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] update jackson packages to v2.20.0 Update Jackson packages to v2.20.0 Sep 9, 2025
Copilot AI requested a review from trask September 9, 2025 02:51
Copilot finished work on behalf of trask September 9, 2025 02:51
@trask trask closed this Sep 12, 2025
@trask trask deleted the copilot/update-jackson-packages-to-v2-20-0 branch October 20, 2025 17:05
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