Skip to content

Commit 303aa3c

Browse files
committed
updated POM to use JDK 21
1 parent 234eaee commit 303aa3c

File tree

3 files changed

+8
-35
lines changed

3 files changed

+8
-35
lines changed

javav2/example_code/emr/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/emr/src/test/java/EMRTest.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public class EMRTest {
3535
public static void setUp() throws IOException {
3636
emrClient = EmrClient.builder()
3737
.region(Region.US_WEST_2)
38-
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
3938
.build();
4039

4140
// Get the values to run these tests from AWS Secrets Manager.
@@ -48,31 +47,6 @@ public static void setUp() throws IOException {
4847
logUri = values.getLogUri();
4948
name = values.getName();
5049
existingClusterId = values.getExistingClusterId();
51-
52-
// Uncomment this code block if you prefer using a config.properties file to
53-
// retrieve AWS values required for these tests.
54-
/*
55-
*
56-
* try (InputStream input =
57-
* EMRTest.class.getClassLoader().getResourceAsStream("config.properties")) {
58-
* Properties prop = new Properties();
59-
* if (input == null) {
60-
* System.out.println("Sorry, unable to find config.properties");
61-
* return;
62-
* }
63-
* // Populate the data members required for all tests.
64-
* prop.load(input);
65-
* jar = prop.getProperty("jar");
66-
* myClass = prop.getProperty("myClass");
67-
* keys = prop.getProperty("keys");
68-
* logUri = prop.getProperty("logUri");
69-
* name = prop.getProperty("name");
70-
* existingClusterId= prop.getProperty("existingClusterId");
71-
*
72-
* } catch (IOException ex) {
73-
* ex.printStackTrace();
74-
* }
75-
*/
7650
}
7751

7852
@Test
@@ -123,7 +97,6 @@ public void customEmrfsMaterialsTest() {
12397
private static String getSecretValues() {
12498
SecretsManagerClient secretClient = SecretsManagerClient.builder()
12599
.region(Region.US_EAST_1)
126-
.credentialsProvider(EnvironmentVariableCredentialsProvider.create())
127100
.build();
128101
String secretName = "text/emr";
129102

javav2/example_code/entityresolution/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<version>1.0-SNAPSHOT</version>
1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<java.version>17</java.version>
13-
<maven.compiler.target>17</maven.compiler.target>
14-
<maven.compiler.source>17</maven.compiler.source>
12+
<java.version>21</java.version>
13+
<maven.compiler.target>21</maven.compiler.target>
14+
<maven.compiler.source>21</maven.compiler.source>
1515
</properties>
1616
<build>
1717
<plugins>
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>software.amazon.awssdk</groupId>
3232
<artifactId>bom</artifactId>
33-
<version>2.29.45</version>
33+
<version>2.31.8</version>
3434
<type>pom</type>
3535
<scope>import</scope>
3636
</dependency>

0 commit comments

Comments
 (0)