Skip to content

Commit 7470df1

Browse files
authored
Append PREVIEW to the migration tool version and add changelog entry (#5460)
* Append PREVIEW to the migration tool version and add changelog entry * Fix build
1 parent af1b260 commit 7470df1

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2 Migration Tool",
4+
"contributor": "",
5+
"description": "Introduce the preview release of the AWS SDK for Java v2 migration tool that automatically migrates applications from the AWS SDK for Java v1 to the AWS SDK for Java v2."
6+
}

test/v2-migration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>software.amazon.awssdk</groupId>
6969
<artifactId>v2-migration</artifactId>
70-
<version>${project.version}</version>
70+
<version>${project.version}-PREVIEW</version>
7171
<scope>test</scope>
7272
</dependency>
7373
</dependencies>

test/v2-migration-tests/src/test/resources/run-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run_maven_test(version):
4848
write_version_to_pom(before_pom_file, version)
4949

5050
subprocess.run(["mvn", "org.openrewrite.maven:rewrite-maven-plugin:run",
51-
"-Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:v2-migration:"+ version,
51+
"-Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:v2-migration:"+ version + "-PREVIEW",
5252
"-Drewrite.activeRecipes=software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2"], cwd=TARGET_DIR_MAVEN, check=True)
5353
shutil.rmtree(os.path.join(TARGET_DIR_MAVEN, "target"))
5454

@@ -72,7 +72,7 @@ def run_gradle_test(version):
7272
copy_directory(BEFORE_DIR_GRADLE, TARGET_DIR_GRADLE)
7373
copy_directory(AFTER_DIR_GRADLE, TARGET_AFTER_DIR_GRADLE)
7474
init_file = Path(INIT_FILE)
75-
init_file.write_text(init_file.read_text().replace('V2_VERSION', version))
75+
init_file.write_text(init_file.read_text().replace('V2_VERSION', version + "-PREVIEW"))
7676

7777
subprocess.run(["./gradlew", "rewriteRun", "--init-script", "init.gradle",
7878
"-Drewrite.activeRecipes=software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2"], cwd=TARGET_DIR_GRADLE, check=True)

v2-migration/pom.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
2424
<version>2.26.16-SNAPSHOT</version>
25+
<relativePath>../pom.xml</relativePath>
2526
</parent>
2627

2728
<artifactId>v2-migration</artifactId>
29+
<version>${awsjavasdk.version}-PREVIEW</version>
2830
<name>AWS Java SDK :: V2 Migration</name>
2931
<description>
3032
Contains OpenRewrite recipes to help users migrate from the AWS SDK for Java v1 to the AWS SDK for Java v2
3133
</description>
3234

35+
<properties>
36+
<awsjavasdk.version>${project.parent.version}</awsjavasdk.version>
37+
</properties>
38+
3339
<dependencyManagement>
3440
<dependencies>
3541
<!-- We should not use bom-internal here because it'll cause version conflict -->
@@ -75,32 +81,32 @@
7581
<dependency>
7682
<groupId>software.amazon.awssdk</groupId>
7783
<artifactId>utils</artifactId>
78-
<version>${project.version}</version>
84+
<version>${awsjavasdk.version}</version>
7985
</dependency>
8086
<dependency>
8187
<groupId>software.amazon.awssdk</groupId>
8288
<artifactId>sdk-core</artifactId>
83-
<version>${project.version}</version>
89+
<version>${awsjavasdk.version}</version>
8490
</dependency>
8591
<dependency>
8692
<groupId>software.amazon.awssdk</groupId>
8793
<artifactId>apache-client</artifactId>
88-
<version>${project.version}</version>
94+
<version>${awsjavasdk.version}</version>
8995
</dependency>
9096
<dependency>
9197
<groupId>software.amazon.awssdk</groupId>
9298
<artifactId>netty-nio-client</artifactId>
93-
<version>${project.version}</version>
99+
<version>${awsjavasdk.version}</version>
94100
</dependency>
95101
<dependency>
96102
<groupId>software.amazon.awssdk</groupId>
97103
<artifactId>auth</artifactId>
98-
<version>${project.version}</version>
104+
<version>${awsjavasdk.version}</version>
99105
</dependency>
100106
<dependency>
101107
<groupId>software.amazon.awssdk</groupId>
102108
<artifactId>sts</artifactId>
103-
<version>${project.version}</version>
109+
<version>${awsjavasdk.version}</version>
104110
</dependency>
105111

106112
<dependency>

0 commit comments

Comments
 (0)