Skip to content

Commit 655a3a0

Browse files
committed
updated POM to use JDK 21
1 parent cfe9c85 commit 655a3a0

File tree

8 files changed

+528
-551
lines changed

8 files changed

+528
-551
lines changed

javav2/example_code/appsync/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<version>1.0-SNAPSHOT</version>
99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<java.version>17</java.version>
12-
<maven.compiler.target>17</maven.compiler.target>
13-
<maven.compiler.source>17</maven.compiler.source>
11+
<java.version>21</java.version>
12+
<maven.compiler.target>21</maven.compiler.target>
13+
<maven.compiler.source>21</maven.compiler.source>
1414
</properties>
1515
<build>
1616
<plugins>
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>software.amazon.awssdk</groupId>
3737
<artifactId>bom</artifactId>
38-
<version>2.29.45</version>
38+
<version>2.31.8</version>
3939
<type>pom</type>
4040
<scope>import</scope>
4141
</dependency>

javav2/example_code/appsync/src/test/java/AppSyncTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public static void setUp() throws IOException {
3636
reg = region.toString();
3737
appSyncClient = AppSyncClient.builder()
3838
.region(region)
39-
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
4039
.build();
4140

4241
// Get the values to run these tests from AWS Secrets Manager.
@@ -47,29 +46,6 @@ public static void setUp() throws IOException {
4746
dsName = values.getDsName();
4847
dsRole = values.getDsRole();
4948
tableName = values.getTableName();
50-
51-
// Uncomment this code block if you prefer using a config.properties file to
52-
// retrieve AWS values required for these tests.
53-
/*
54-
* try (InputStream input =
55-
* AppSyncTest.class.getClassLoader().getResourceAsStream("config.properties"))
56-
* {
57-
* Properties prop = new Properties();
58-
* if (input == null) {
59-
* System.out.println("Sorry, unable to find config.properties");
60-
* return;
61-
* }
62-
*
63-
* prop.load(input);
64-
* apiId = prop.getProperty("apiId");
65-
* dsName = prop.getProperty("dsName");
66-
* dsRole= prop.getProperty("dsRole");
67-
* tableName= prop.getProperty("tableName");
68-
*
69-
* } catch (IOException ex) {
70-
* ex.printStackTrace();
71-
* }
72-
*/
7349
}
7450

7551
@Test
@@ -133,7 +109,6 @@ public void DeleteApiKey() {
133109
private static String getSecretValues() {
134110
SecretsManagerClient secretClient = SecretsManagerClient.builder()
135111
.region(Region.US_EAST_1)
136-
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
137112
.build();
138113
String secretName = "test/appsync";
139114

javav2/example_code/athena/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<version>1.0-SNAPSHOT</version>
88
<properties>
99
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10-
<java.version>17</java.version>
11-
<maven.compiler.target>17</maven.compiler.target>
12-
<maven.compiler.source>17</maven.compiler.source>
10+
<java.version>21</java.version>
11+
<maven.compiler.target>21</maven.compiler.target>
12+
<maven.compiler.source>21</maven.compiler.source>
1313
</properties>
1414
<build>
1515
<plugins>
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>software.amazon.awssdk</groupId>
2727
<artifactId>bom</artifactId>
28-
<version>2.29.45</version>
28+
<version>2.31.8</version>
2929
<type>pom</type>
3030
<scope>import</scope>
3131
</dependency>

javav2/example_code/athena/src/test/java/AmazonAthenaTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public class AmazonAthenaTest {
2323
public static void setUp() throws IOException {
2424
athenaClient = AthenaClient.builder()
2525
.region(Region.US_WEST_2)
26-
.credentialsProvider(ProfileCredentialsProvider.create())
2726
.build();
2827

2928
try (InputStream input = AmazonAthenaTest.class.getClassLoader().getResourceAsStream("config.properties")) {

javav2/example_code/autoscale/pom.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<version>1.0-SNAPSHOT</version>
99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<java.version>17</java.version>
12-
<maven.compiler.target>17</maven.compiler.target>
13-
<maven.compiler.source>17</maven.compiler.source>
11+
<java.version>21</java.version>
12+
<maven.compiler.target>21</maven.compiler.target>
13+
<maven.compiler.source>21</maven.compiler.source>
1414
</properties>
1515
<build>
1616
<plugins>
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>software.amazon.awssdk</groupId>
2828
<artifactId>bom</artifactId>
29-
<version>2.29.45</version>
29+
<version>2.31.8</version>
3030
<type>pom</type>
3131
<scope>import</scope>
3232
</dependency>
@@ -52,6 +52,10 @@
5252
<groupId>software.amazon.awssdk</groupId>
5353
<artifactId>autoscaling</artifactId>
5454
</dependency>
55+
<dependency>
56+
<groupId>software.amazon.awssdk</groupId>
57+
<artifactId>ec2</artifactId>
58+
</dependency>
5559
<dependency>
5660
<groupId>software.amazon.awssdk</groupId>
5761
<artifactId>auth</artifactId>

0 commit comments

Comments
 (0)