You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/16 03:48:42 UTC
[PR] Fix deprecated AWS SDK v1 API compiler warnings [pekko-persistence-dynamodb]
He-Pin opened a new pull request, #315:
URL: https://github.com/apache/pekko-persistence-dynamodb/pull/315
### Motivation
Compilation produces four deprecation warnings from AWS SDK v1 API usage:
- `ClientConfiguration.setUserAgent` in `DynamoDBConfig.scala:85`
- `new AmazonDynamoDBAsyncClient(creds, config, executor)` in `package.scala:72`
- `new AmazonDynamoDBAsyncClient(config)` in `package.scala:74`
- `AmazonWebServiceClient.setEndpoint` in `package.scala:76`
### Modification
- Replace deprecated `AmazonDynamoDBAsyncClient` constructors and `setEndpoint` call with the `AmazonDynamoDBAsyncClientBuilder` pattern in `package.scala`, using `withCredentials`, `withClientConfiguration`, `withEndpointConfiguration`, and `withExecutorFactory`.
- Add `@nowarn("msg=is deprecated")` to the `setUserAgent` call in `DynamoDBClientConfig` since AWS SDK v1 provides no non-deprecated replacement for this method on `ClientConfiguration`.
### Result
Clean compilation with zero deprecation warnings on both Scala 2.13 and Scala 3.3.
### Tests
- `sbt "++2.13.18; clean; compile"` -- no warnings
- `sbt "++3.3.8; clean; compile"` -- no warnings
### References
None - compiler warning cleanup
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org