Skip to content

Commit c87be20

Browse files
committed
Add AWS SDK V1 deprecation notice
AWS has deprecated SDK for Java v1, and will remove support EOY 2025. S3Mock will remove usage of Java v1 early 2026.
1 parent 31e1b8a commit c87be20

File tree

12 files changed

+53
-10
lines changed

12 files changed

+53
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ Running S3Mock in unit tests is still supported by using [TestContainers](https:
120120
* Features and fixes
121121
* TBD
122122
* Refactorings
123+
* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.
124+
* S3Mock will remove usage of Java v1 early 2026.
123125
* Looking to Remove unit test modules. This enables
124126
* Refactoring S3Mock to a "standard" Spring Boot application.
125127
* Removal of workarounds to use `S3MockApplication#start` from a static context
@@ -168,6 +170,9 @@ Version 4.x is JDK17 LTS bytecode compatible, with Docker and JUnit / direct Jav
168170
* Allow overriding headers in head object
169171
* Implement If-(Un)modified-Since handling (fixes #829)
170172
* Close all InputStreams and OutputStreams
173+
* Add AWS SDK V1 deprecation notice
174+
* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.
175+
* S3Mock will remove usage of Java v1 early 2026.
171176
* Refactorings
172177
* Use Tomcat instead of Jetty as the application container (fixes #2136)
173178
* "FROM" in Dockerfile did not match "as"

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/BucketV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,6 +32,8 @@ import java.util.stream.Collectors
3232
/**
3333
* Test the application using the AmazonS3 SDK V1.
3434
*/
35+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
36+
" * S3Mock will remove usage of Java v1 early 2026.")
3537
internal class BucketV1IT : S3TestBase() {
3638

3739
private val s3Client: AmazonS3 = createS3ClientV1()

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/CopyObjectV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,8 @@ import java.util.UUID
3636
/**
3737
* Test the application using the AmazonS3 SDK V1.
3838
*/
39+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
40+
" * S3Mock will remove usage of Java v1 early 2026.")
3941
internal class CopyObjectV1IT : S3TestBase() {
4042

4143
private val s3Client: AmazonS3 = createS3ClientV1()

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ErrorResponsesV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,6 +41,8 @@ import java.util.UUID
4141
* Test the application using the AmazonS3 SDK V1.
4242
* Verifies S3 Mocks Error Responses.
4343
*/
44+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
45+
" * S3Mock will remove usage of Java v1 early 2026.")
4446
internal class ErrorResponsesV1IT : S3TestBase() {
4547

4648
private val s3Client: AmazonS3 = createS3ClientV1()

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/GetPutDeleteObjectV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,6 +51,8 @@ import kotlin.math.min
5151
/**
5252
* Test the application using the AmazonS3 SDK V1.
5353
*/
54+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
55+
" * S3Mock will remove usage of Java v1 early 2026.")
5456
internal class GetPutDeleteObjectV1IT : S3TestBase() {
5557

5658
private val httpClient: CloseableHttpClient = createHttpClient()

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ListObjectV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,6 +33,8 @@ import java.util.stream.Collectors
3333
/**
3434
* Test the application using the AmazonS3 SDK V1.
3535
*/
36+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
37+
" * S3Mock will remove usage of Java v1 early 2026.")
3638
internal class ListObjectV1IT : S3TestBase() {
3739

3840
val s3Client: AmazonS3 = createS3ClientV1()

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ListObjectV1MaxKeysIT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,8 @@ import org.assertj.core.api.Assertions.assertThat
2121
import org.junit.jupiter.api.Test
2222
import org.junit.jupiter.api.TestInfo
2323

24+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
25+
" * S3Mock will remove usage of Java v1 early 2026.")
2426
internal class ListObjectV1MaxKeysIT : S3TestBase() {
2527
val s3Client: AmazonS3 = createS3ClientV1()
2628

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ListObjectV1PaginationIT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,8 @@ import org.assertj.core.api.Assertions.assertThat
2121
import org.junit.jupiter.api.Test
2222
import org.junit.jupiter.api.TestInfo
2323

24+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
25+
" * S3Mock will remove usage of Java v1 early 2026.")
2426
internal class ListObjectV1PaginationIT : S3TestBase() {
2527
val s3Client: AmazonS3 = createS3ClientV1()
2628

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/MultiPartUploadV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,6 +42,8 @@ import java.util.UUID
4242
/**
4343
* Test the application using the AmazonS3 SDK V1.
4444
*/
45+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
46+
" * S3Mock will remove usage of Java v1 early 2026.")
4547
internal class MultiPartUploadV1IT : S3TestBase() {
4648
val s3Client: AmazonS3 = createS3ClientV1()
4749

integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/ObjectTaggingV1IT.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 Adobe.
2+
* Copyright 2017-2025 Adobe.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,6 +29,8 @@ import java.io.File
2929
/**
3030
* Test the application using the AmazonS3 SDK V1.
3131
*/
32+
@Deprecated("* AWS has deprecated SDK for Java v1, and will remove support EOY 2025.\n" +
33+
" * S3Mock will remove usage of Java v1 early 2026.")
3234
internal class ObjectTaggingV1IT : S3TestBase() {
3335
val s3Client: AmazonS3 = createS3ClientV1()
3436

0 commit comments

Comments
 (0)