How to upgrade AWS SDK for Java from 1.x to 2.x

Hello,

I notice that " The AWS SDK for Java 1.x is reaching end of support on December 31, 2025"
I have installed the sdk 2.x plugins, also I still have sdk 1.x plugins. I tried to uninstall 1.x plugins but some plugins cannot due to dependency.

So, my question is how to uninstall sdk 1.x, or how to use sdk 2.x without uninstall sdk 1.x.
Not sure if anyone encounter same issue, any advice will be helpful. Thanks.

Jenkins setup:
Jenkins version 2.516.3
JDK version 1.17

There isn’t a way to use the AWS SDK for Java 2 while also removing AWS SDK for Java 1, at least not yet. In order to retain compatibility, the AWS global configuration plugin and the AWS credentials plugin have a dependency on both the AWS SDK for Java and the AWS SDK for Java 2.

The pair of dependencies allowed users to transition smoothly from the AWS SDK for Java to the newer AWS SDK for Java 2.

I’ve not seen any mention of a timeline to remove the dual dependency, since that would be a breaking change for plugins that depend on those two plugins.

1 Like

Thanks for your reply.