Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 12, 2025

Bumps software.amazon.lambda:powertools-logging from 1.20.2 to 2.0.0.

Changelog

Sourced from software.amazon.lambda:powertools-logging's changelog.

Changelog

All notable changes to this project will be documented in this file.

This project follows Keep a Changelog format for changes and adheres to Semantic Versioning.

[Unreleased]

[1.20.1] - 2025-04-08

  • docs: fix 2 typos (#1739) by @​ntestor
  • docs: Correct XML formatting for Maven configuration in Large Messages utility docs (#1796) by @​jreijn
  • fix: Load version.properties file as resource stream to fix loading when packaged as jar (#1813) by @​phipag

[1.20.0] - 2025-03-25

  • feat(cfn-custom-resource): Add optional 'reason' field for detailed failure reporting (#1758) by @​moizsh

[1.19.0] - 2025-03-07

... (truncated)

Upgrade guide

Sourced from software.amazon.lambda:powertools-logging's upgrade guide.


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (Java) versions

End of support v1

Given our commitment to all of our customers using Powertools for AWS Lambda (Java), we will keep Maven Central{target="_blank"} v1 releases and a v1 documentation archive to prevent any disruption.

Migrate to v2 from v1

!!! info "We strongly encourage you to migrate to v2. Refer to our versioning policy to learn more about our version support process."

We've made minimal breaking changes to make your transition to v2 as smooth as possible.

Quick summary

The following table shows a summary of the changes made in v2 and whether code changes are necessary. Each change that requires a code change links to a section below explaining more details.

Area Change Code change required
Logging The logging module was re-designed from scratch to support popular Java logging paradigms and libraries like log4j2, logback, and slf4j. Yes
Metrics Changed public interface to remove direct coupling with aws-embedded-metrics-java. Yes
Tracing Removed deprecated captureResponse and captureError options on @Tracing annotation. Yes
Idempotency The powertools-idempotency module was split by provider to improve modularity and reduce the deployment package size. Yes
Idempotency Updated IdempotencyConfig interface to support addition of response hooks. No
Parameters The powertools-parameters module was split by provider to improve modularity and reduce the deployment package size. Yes
Batch Processing Removed deprecated powertools-sqs module in favor of the more generic Batch Processing utility. Yes
Batch Processing Updated Batch Processing BatchMessageHandler interface to add support for parallel processing. No
Validation The @Validation utility returns 4xx error codes instead of 5xx error codes when used with API Gateway now. No
Validation Validating batch event sources now adds failed events as partial batch failures and does not fail the whole batch anymore. No
Custom Resources https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs[https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsRhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsmhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsvhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsphttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsrhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsahttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsthttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs`https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsRhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsphttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsnhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs.https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsfhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsahttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsihttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docslhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs(https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs)https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs`https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsahttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsnhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs`https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsRhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsphttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsnhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs.https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsuhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs(https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs)https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs`https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsmhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsthttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docshhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs]https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs(https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs#https://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsuhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsthttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsmhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs-https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsrhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsuhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsrhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs-https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsuhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsphttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsdhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsahttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsthttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs-https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsthttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docshhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs-https://github.com/aws-powertools/powertools-lambda-java/blob/main/docsrhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsphttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsohttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsnhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsehttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs-https://github.com/aws-powertools/powertools-lambda-java/blob/main/docschttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docslhttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsahttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docsshttps://github.com/aws-powertools/powertools-lambda-java/blob/main/docs)https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs. Yes
Custom Resources Changed interface of Response class to add an optional reason field. No
Dependencies Renamed powertools-core to powertools-common. This module should not be used as direct dependency and is listed here for completeness. No
Dependencies Removed org.aspectj.aspectjrt as project dependency in favor of consumers including the version they prefer. Yes
Language support Removed support for Java 8. The minimum required Java version is Java 11. N/A

First Steps

Before you start, we suggest making a copy of your current working project or create a new branch with git.

  1. Upgrade Java to at least version 11. While version 11 is supported, we recommend using the newest available LTS version{target="_blank"} of Java.
  2. Review the following section to confirm if you need to make changes to your code.

Redesigned Logging Utility

... (truncated)

Commits
  • c096d56 chore(ci): bump version to 2.0.0
  • b314321 chore(ci): bump version to 2.0.0-RC1 (#1875)
  • e3d4c7e Fix remaining maven central properties required. (#1872)
  • af31d6f Add Maven Central required info to pom.xml and skip deploying e2e tests and p...
  • 92926f3 fix(ci): Checkout repo on doc release (#1869)
  • 20a4d94 chore(v2): Remove rule preventing production release of 2.0.0 (#1867)
  • fa1c37d docs(metrics): Add upgrade guide for re-designed Metrics utility (#1868)
  • 57ae153 feat(metrics): New metrics module implementation with support for Metrics pro...
  • 4444b4b chore(ci): Set snapshot repository to "central" server ID
  • 54ef1e9 fix(ci): Fix failing E2E tests and temporarily exclude TracingE2E (#1847)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jun 12, 2025
@eps-autoapprove-dependabot
Copy link

I'm not approving this PR because it includes a major update of a dependency used in production

Bumps [software.amazon.lambda:powertools-logging](https://github.com/aws-powertools/powertools-lambda-java) from 1.20.2 to 2.0.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-java/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-java/blob/main/CHANGELOG.md)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-java/blob/main/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-java@v1.20.2...v2.0.0)

---
updated-dependencies:
- dependency-name: software.amazon.lambda:powertools-logging
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/maven/software.amazon.lambda-powertools-logging-2.0.0 branch from 89df0f8 to be7ea71 Compare June 18, 2025 12:09
@eps-autoapprove-dependabot
Copy link

I'm not approving this PR because it includes a major update of a dependency used in production

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 20, 2025

Superseded by #297.

@dependabot dependabot bot closed this Jun 20, 2025
@dependabot dependabot bot deleted the dependabot/maven/software.amazon.lambda-powertools-logging-2.0.0 branch June 20, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants