1
- # AWS SDK for Java v2 Migration Tool
1
+ # AWS SDK for Java v2 Migration Tooling
2
2
3
3
## Description
4
- This is a migration tool to automate migration from AWS SDK for Java v1 to AWS SDK for Java v2.
5
- It uses [ OpenRewrite] [ open-rewrite ] .
4
+ This modules contains [ OpenRewrite] [ open-rewrite ] recipes to automate migration from the AWS SDK for Java v1 to the AWS SDK for Java v2.
6
5
7
6
## Usage
8
7
@@ -17,8 +16,8 @@ find the latest version.
17
16
18
17
```
19
18
mvn org.openrewrite.maven:rewrite-maven-plugin:dryRun \
20
- -Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:migration-tool :{sdkversion} \
21
- -Drewrite.activeRecipes=software.amazon.awssdk.UpgradeJavaSdk2
19
+ -Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:v2-migration :{sdkversion} \
20
+ -Drewrite.activeRecipes=software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2
22
21
```
23
22
24
23
- Run
@@ -27,8 +26,8 @@ With this mode, it runs the SDK recipes and applies the changes locally.
27
26
28
27
```
29
28
mvn org.openrewrite.maven:rewrite-maven-plugin:run \
30
- -Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:migration-tool :{sdkversion} \
31
- -Drewrite.activeRecipes=software.amazon.awssdk.UpgradeJavaSdk2
29
+ -Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:v2-migration :{sdkversion} \
30
+ -Drewrite.activeRecipes=software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2
32
31
```
33
32
34
33
@@ -37,7 +36,7 @@ mvn org.openrewrite.maven:rewrite-maven-plugin:run \
37
36
To build this module locally for fast development, run the following command.
38
37
39
38
```
40
- mvn clean install -pl :bom-internal,:bom,:migration-tool -P quick --am
39
+ mvn clean install -pl :bom-internal,:bom,:v2-migration -P quick --am
41
40
```
42
41
43
42
### Testing
@@ -49,13 +48,13 @@ Unit tests reside in the test folder in this module. They use [RewriteTest][rewr
49
48
50
49
- End-to-end functional tests
51
50
52
- End-to-end functional tests are in [ migration-tool- tests module] [ migration-tool -tests] . It contains
51
+ End-to-end functional tests are in [ v2- migration-tests module] [ v2-migration -tests] . It contains
53
52
sample applications using the AWS SDK for Java v1 and compares the transformed code with the expected v2
54
53
code and ensures it compiles.
55
54
56
55
[ open-rewrite ] : https://docs.openrewrite.org/
57
56
[ open-rewrite-usage ] : https://docs.openrewrite.org/running-recipes
58
57
[ open-rewrite-plugin ] : https://docs.openrewrite.org/reference/rewrite-maven-plugin
59
- [ maven-central ] : https://central.sonatype.com/artifact/software.amazon.awssdk/migration-tool
58
+ [ maven-central ] : https://central.sonatype.com/artifact/software.amazon.awssdk/v2-migration
60
59
[ rewrite-test ] :https://docs.openrewrite.org/authoring-recipes/recipe-testing#rewritetest-interface
61
- [ migration-tool- tests ] :../test/migration-tool -tests
60
+ [ v2- migration-tests] :../test/v2-migration -tests
0 commit comments