File tree Expand file tree Collapse file tree 6 files changed +10
-7
lines changed
test/test-utils/src/main/java/software/amazon/awssdk/testutils
test/java/software/amazon/awssdk/v2migration Expand file tree Collapse file tree 6 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ phases:
20
20
- echo 'For debugging, running version command without -q'
21
21
- mvn -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec
22
22
- RELEASE_VERSION=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
23
+ - PREVIOUS_VERSION=$(mvn help:evaluate -Dexpression=awsjavasdk.previous.version -q -DforceStdout)
23
24
- echo "Release version - $RELEASE_VERSION"
24
25
-
25
26
- MAJOR=$(echo $RELEASE_VERSION | cut -d'.' -f1)
@@ -39,6 +40,7 @@ phases:
39
40
40
41
mvn versions:set -DnewVersion=$NEW_VERSION_SNAPSHOT -DgenerateBackupPoms=false -DprocessAllModules=true || { echo "Failed to update POMs to next snapshot version"; exit 1; }
41
42
sed -i -E "s/(<version>).+(<\/version>)/\1$RELEASE_VERSION\2/" README.md
43
+ sed -i -E "s/(<awsjavasdk.previous-previous.version>).+(<\/awsjavasdk.previous-previous.version>)/\1$PREVIOUS_VERSION\2/" pom.xml
42
44
sed -i -E "s/(<awsjavasdk.previous.version>).+(<\/awsjavasdk.previous.version>)/\1$RELEASE_VERSION\2/" pom.xml
43
45
44
46
git commit -am "Update to next snapshot version: $NEW_VERSION_SNAPSHOT"
Original file line number Diff line number Diff line change 102
102
<properties >
103
103
<awsjavasdk .version>${project.version} </awsjavasdk .version>
104
104
<awsjavasdk .previous.version>2.31.29</awsjavasdk .previous.version>
105
+ <awsjavasdk .previous-previous.version>2.31.28</awsjavasdk .previous-previous.version>
105
106
<jackson .version>2.15.2</jackson .version>
106
107
<jackson .databind.version>2.15.2</jackson .databind.version>
107
108
<jacksonjr .version>2.17.3</jacksonjr .version>
Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ private SdkVersionUtils() {
33
33
public static String getSdkPreviousReleaseVersion (Path pomFile ) throws IOException {
34
34
Optional <String > versionString =
35
35
Files .readAllLines (pomFile )
36
- .stream ().filter (l -> l .contains ("<awsjavasdk.previous.version>" )).findFirst ();
36
+ .stream ().filter (l -> l .contains ("<awsjavasdk.previous-previous .version>" )).findFirst ();
37
37
38
38
if (!versionString .isPresent ()) {
39
39
throw new AssertionError ("No version is found" );
40
40
}
41
41
42
42
String string = versionString .get ().trim ();
43
- String substring = string .substring (29 , string .indexOf ('/' ) - 1 );
43
+ String substring = string .substring (38 , string .indexOf ('/' ) - 1 );
44
44
return substring ;
45
45
}
46
46
Original file line number Diff line number Diff line change 312
312
<velocitySources >src/main/resources/recipe-vm-templates</velocitySources >
313
313
<resourcesOutputDirectory >${project.build.directory} /classes/META-INF/rewrite</resourcesOutputDirectory >
314
314
<properties >
315
- <sdkVersion >${awsjavasdk.previous.version} </sdkVersion >
315
+ <sdkVersion >${awsjavasdk.previous-previous .version} </sdkVersion >
316
316
</properties >
317
317
</configuration >
318
318
</plugin >
Original file line number Diff line number Diff line change 23
23
24
24
def find_sdk_version ():
25
25
pom = open (os .path .join (PROJECT_DIR , "pom.xml" ), 'r' )
26
- reg = re .compile ("<awsjavasdk.previous.version>.+" )
26
+ reg = re .compile ("<awsjavasdk.previous-previous .version>.+" )
27
27
version = re .search (reg , pom .read ())
28
28
versionStr = version .group (0 )
29
- return versionStr [29 : - 30 ]
29
+ return versionStr [38 : - 39 ]
30
30
31
31
32
32
def load_module_mappings (filename ):
Original file line number Diff line number Diff line change @@ -79,14 +79,14 @@ private static String getVersion() throws IOException {
79
79
Path pomFile = root .resolve ("pom.xml" );
80
80
Optional <String > versionString =
81
81
Files .readAllLines (pomFile )
82
- .stream ().filter (l -> l .contains ("<awsjavasdk.previous.version>" )).findFirst ();
82
+ .stream ().filter (l -> l .contains ("<awsjavasdk.previous-previous .version>" )).findFirst ();
83
83
84
84
if (!versionString .isPresent ()) {
85
85
throw new AssertionError ("No version is found" );
86
86
}
87
87
88
88
String string = versionString .get ().trim ();
89
- String substring = string .substring (29 , string .indexOf ('/' ) - 1 );
89
+ String substring = string .substring (38 , string .indexOf ('/' ) - 1 );
90
90
return substring ;
91
91
}
92
92
You can’t perform that action at this time.
0 commit comments