Skip to content

Commit e509a56

Browse files
chore: fix CI (almost) and make AWS SDK v1 compileOnly (#2049)
1 parent a2166c9 commit e509a56

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

DynamoDbEncryption/runtimes/java/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ java {
3333
srcDir("src/main/dafny-generated")
3434
srcDir("src/main/smithy-generated")
3535
srcDir("src/main/sdkv1")
36+
srcDir("src/main/sdkv2")
3637
}
3738
sourceSets["test"].java {
3839
srcDir("src/test")
@@ -91,8 +92,12 @@ dependencies {
9192
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
9293
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
9394

94-
// For the DDB-EC v1
95-
implementation("com.amazonaws:aws-java-sdk-dynamodb:1.12.780")
95+
// For the DDB-EC with SDK v1
96+
compileOnly("com.amazonaws:aws-java-sdk-dynamodb:1.12.780")
97+
// For the DDB-EC with SDK V2
98+
implementation("io.netty:netty-common:4.2.9.Final")
99+
100+
testImplementation("software.amazon.awssdk:url-connection-client:2.41.17")
96101
// https://mvnrepository.com/artifact/org.testng/testng
97102
testImplementation("org.testng:testng:7.5")
98103
// https://mvnrepository.com/artifact/com.amazonaws/DynamoDBLocal

DynamoDbEncryption/runtimes/java/src/test/sdkv2/software/amazon/cryptools/dynamodbencryptionclientsdk2/testing/LocalDynamoDb.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public DynamoDbClient createClient() {
7373
// The region is meaningless for local DynamoDb but required for client builder validation
7474
.region(Region.US_EAST_1)
7575
.credentialsProvider(StaticCredentialsProvider.create(
76-
AwsBasicCredentials.create("dummy-key", "dummy-secret")))
76+
AwsBasicCredentials.create("dummykey", "dummysecret")))
7777
.build();
7878
}
7979

0 commit comments

Comments
 (0)