Skip to content

Commit

Permalink
Require dependency & remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuwu committed Nov 1, 2024
1 parent 1acd568 commit 264bff8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
<groupId>software.amazon.awssdk</groupId>
<artifactId>kms</artifactId>
<version>2.28.28</version>
<optional>true</optional>
</dependency>

<!-- Used when enableMultipartPutObject is configured -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1139,11 +1139,6 @@ public S3EncryptionClient build() {
.secureRandom(_secureRandom)
.build();
} else if (_kmsKeyId != null) {
try {
Class.forName("software.amazon.awssdk.services.kms.KmsClient");
} catch (ClassNotFoundException e) {
throw new RuntimeException("software.amazon.awssdk:kms is required to set up with KMS key", e);
}
KmsClient kmsClient = KmsClient.builder()
.credentialsProvider(_awsCredentialsProvider)
.region(_region)
Expand Down

0 comments on commit 264bff8

Please sign in to comment.