Skip to content

Commit fa9f9fc

Browse files
committed
Update to not generate upgrade-sdk-dependencies and change-enum-getters
1 parent 374644e commit fa9f9fc

File tree

4 files changed

+417
-431
lines changed

4 files changed

+417
-431
lines changed

test/v2-migration-tests/src/test/java/software/amazon/awssdk/v2migrationtests/TestUtils.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,21 @@ public static void assertTwoDirectoriesHaveSameStructure(Path a, Path b) {
4242
}
4343

4444
public static String getVersion() throws IOException {
45-
Path root = Paths.get(".").normalize().toAbsolutePath();
46-
Path pomFile = root.resolve("pom.xml");
47-
Optional<String> versionString =
48-
Files.readAllLines(pomFile)
49-
.stream().filter(l -> l.contains("<version>")).findFirst();
50-
51-
if (!versionString.isPresent()) {
52-
throw new AssertionError("No version is found");
53-
}
54-
55-
String string = versionString.get().trim();
56-
String substring = string.substring(9, string.indexOf('/') - 1);
57-
return substring;
45+
// TODO: uncomment the following code to dynamically get version
46+
// once we update the version
47+
// Path root = Paths.get(".").normalize().toAbsolutePath();
48+
// Path pomFile = root.resolve("pom.xml");
49+
// Optional<String> versionString =
50+
// Files.readAllLines(pomFile)
51+
// .stream().filter(l -> l.contains("<version>")).findFirst();
52+
//
53+
// if (!versionString.isPresent()) {
54+
// throw new AssertionError("No version is found");
55+
// }
56+
//
57+
// String string = versionString.get().trim();
58+
// String substring = string.substring(9, string.indexOf('/') - 1);
59+
return "2.27.0";
5860
}
5961

6062
public static void replaceVersion(Path path, String version) throws IOException {

v2-migration/pom.xml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -221,24 +221,6 @@
221221
<ignoreNonCompile>false</ignoreNonCompile>
222222
</configuration>
223223
</plugin>
224-
<plugin>
225-
<artifactId>exec-maven-plugin</artifactId>
226-
<groupId>org.codehaus.mojo</groupId>
227-
<version>${exec-maven-plugin.version}</version>
228-
<executions>
229-
<execution>
230-
<id>generate-recipe</id>
231-
<phase>generate-resources</phase>
232-
<goals>
233-
<goal>exec</goal>
234-
</goals>
235-
<configuration>
236-
<executable>python</executable>
237-
<commandlineArgs>${basedir}/src/main/resources/generate-recipes</commandlineArgs>
238-
</configuration>
239-
</execution>
240-
</executions>
241-
</plugin>
242224
<plugin>
243225
<groupId>org.apache.maven.plugins</groupId>
244226
<artifactId>maven-jar-plugin</artifactId>

0 commit comments

Comments
 (0)