Skip to content

Commit

Permalink
chore: match aws sdk dependency versions (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq authored Dec 17, 2024
1 parent f1a52b2 commit f5b9dd6
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 72 deletions.
4 changes: 2 additions & 2 deletions aws-advanced-jdbc-wrapper-bundle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ repositories {

dependencies {
implementation("org.apache.httpcomponents:httpclient:4.5.14")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:sts:2.29.24")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation("software.amazon.awssdk:sts:2.29.34")
implementation(project(":aws-advanced-jdbc-wrapper"))
}

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {
dependencies {
jmhImplementation(project(":aws-advanced-jdbc-wrapper"))
implementation("org.postgresql:postgresql:42.7.4")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("com.mysql:mysql-connector-j:8.3.0")
implementation("org.mariadb.jdbc:mariadb-java-client:3.4.1")
implementation("com.zaxxer:HikariCP:4.0.3")

Expand Down
10 changes: 5 additions & 5 deletions examples/AWSDriverExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
dependencies {
implementation("org.springframework.boot:spring-boot-starter-jdbc:2.7.13") // 2.7.13 is the last version compatible with Java 8
implementation("org.postgresql:postgresql:42.7.4")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:secretsmanager:2.29.29")
implementation("software.amazon.awssdk:sts:2.29.23")
implementation("com.mysql:mysql-connector-j:8.3.0")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation("software.amazon.awssdk:secretsmanager:2.29.34")
implementation("software.amazon.awssdk:sts:2.29.34")
implementation("com.fasterxml.jackson.core:jackson-databind:2.17.1")
implementation(project(":aws-advanced-jdbc-wrapper"))
implementation("io.opentelemetry:opentelemetry-api:1.42.1")
implementation("io.opentelemetry:opentelemetry-sdk:1.42.1")
implementation("io.opentelemetry:opentelemetry-exporter-otlp:1.44.1")
implementation("com.amazonaws:aws-xray-recorder-sdk-core:2.18.1")
implementation("com.amazonaws:aws-xray-recorder-sdk-core:2.18.2")
implementation("org.jsoup:jsoup:1.18.1")
}
4 changes: 2 additions & 2 deletions examples/DBCPExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

dependencies {
implementation("org.postgresql:postgresql:42.7.4")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("com.mysql:mysql-connector-j:8.3.0")
implementation(project(":aws-advanced-jdbc-wrapper"))
implementation("org.apache.commons:commons-dbcp2:2.12.0")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:rds:2.29.34")
}
4 changes: 2 additions & 2 deletions examples/HibernateExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation 'org.hibernate:hibernate-core:6.1.3.Final'
implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'
runtimeOnly 'org.postgresql:postgresql:42.5.4'
runtimeOnly 'mysql:mysql-connector-java:8.0.32'
runtimeOnly 'org.postgresql:postgresql:42.7.4'
runtimeOnly 'com.mysql:mysql-connector-j:8.3.0'
implementation project(':aws-advanced-jdbc-wrapper')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
Expand Down
2 changes: 1 addition & 1 deletion examples/HikariExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

dependencies {
implementation("org.postgresql:postgresql:42.7.4")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("com.mysql:mysql-connector-j:8.3.0")
implementation(project(":aws-advanced-jdbc-wrapper"))
implementation("com.zaxxer:HikariCP:4.0.3")
}
2 changes: 1 addition & 1 deletion examples/ReadWriteSplittingSample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

dependencies {
implementation("org.postgresql:postgresql:42.7.4")
implementation("mysql:mysql-connector-java:8.0.33")
implementation("com.mysql:mysql-connector-j:8.3.0")
implementation("com.zaxxer:HikariCP:4.0.3")
implementation(project(":aws-advanced-jdbc-wrapper"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.retry:spring-retry")
implementation("org.postgresql:postgresql:42.7.4")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation(project(":aws-advanced-jdbc-wrapper"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.retry:spring-retry")
implementation("org.postgresql:postgresql:42.7.4")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation(project(":aws-advanced-jdbc-wrapper"))
}
2 changes: 1 addition & 1 deletion examples/SpringHibernateExample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.postgresql:postgresql:42.7.4")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation(project(":aws-advanced-jdbc-wrapper"))
}
2 changes: 1 addition & 1 deletion examples/SpringWildflyExample/spring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
runtimeOnly("org.springframework.boot:spring-boot-devtools")
implementation("org.postgresql:postgresql:42.7.4")
implementation("software.amazon.awssdk:rds:2.29.23")
implementation("software.amazon.awssdk:rds:2.29.34")
implementation(project(":aws-advanced-jdbc-wrapper"))
}
26 changes: 13 additions & 13 deletions wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ plugins {
dependencies {
implementation("org.checkerframework:checker-qual:3.48.1")
compileOnly("org.apache.httpcomponents:httpclient:4.5.14")
compileOnly("software.amazon.awssdk:rds:2.29.23")
compileOnly("software.amazon.awssdk:auth:2.29.24") // Required for IAM (light implementation)
compileOnly("software.amazon.awssdk:http-client-spi:2.29.23") // Required for IAM (light implementation)
compileOnly("software.amazon.awssdk:sts:2.29.24")
compileOnly("software.amazon.awssdk:rds:2.29.29")
compileOnly("software.amazon.awssdk:auth:2.29.29") // Required for IAM (light implementation)
compileOnly("software.amazon.awssdk:http-client-spi:2.29.29") // Required for IAM (light implementation)
compileOnly("software.amazon.awssdk:sts:2.29.29")
compileOnly("com.zaxxer:HikariCP:4.0.3") // Version 4.+ is compatible with Java 8
compileOnly("software.amazon.awssdk:secretsmanager:2.29.29")
compileOnly("com.fasterxml.jackson.core:jackson-databind:2.17.1")
compileOnly("mysql:mysql-connector-java:8.0.33")
compileOnly("com.mysql:mysql-connector-j:8.3.0")
compileOnly("org.postgresql:postgresql:42.7.4")
compileOnly("org.mariadb.jdbc:mariadb-java-client:3.4.1")
compileOnly("org.osgi:org.osgi.core:6.0.0")
Expand All @@ -58,17 +58,17 @@ dependencies {

testImplementation("org.apache.commons:commons-dbcp2:2.12.0")
testImplementation("org.postgresql:postgresql:42.7.4")
testImplementation("mysql:mysql-connector-java:8.0.33")
testImplementation("com.mysql:mysql-connector-j:8.3.0")
testImplementation("org.mariadb.jdbc:mariadb-java-client:3.4.1")
testImplementation("com.zaxxer:HikariCP:4.0.3") // Version 4.+ is compatible with Java 8
testImplementation("org.springframework.boot:spring-boot-starter-jdbc:2.7.13") // 2.7.13 is the last version compatible with Java 8
testImplementation("org.mockito:mockito-inline:4.11.0") // 4.11.0 is the last version compatible with Java 8
testImplementation("software.amazon.awssdk:rds:2.29.23")
testImplementation("software.amazon.awssdk:auth:2.29.24") // Required for IAM (light implementation)
testImplementation("software.amazon.awssdk:http-client-spi:2.29.23") // Required for IAM (light implementation)
testImplementation("software.amazon.awssdk:ec2:2.29.23")
testImplementation("software.amazon.awssdk:secretsmanager:2.29.29")
testImplementation("software.amazon.awssdk:sts:2.29.24")
testImplementation("software.amazon.awssdk:rds:2.29.34")
testImplementation("software.amazon.awssdk:auth:2.29.34") // Required for IAM (light implementation)
testImplementation("software.amazon.awssdk:http-client-spi:2.29.34") // Required for IAM (light implementation)
testImplementation("software.amazon.awssdk:ec2:2.29.34")
testImplementation("software.amazon.awssdk:secretsmanager:2.29.34")
testImplementation("software.amazon.awssdk:sts:2.29.34")
testImplementation("org.testcontainers:testcontainers:1.20.1")
testImplementation("org.testcontainers:mysql:1.20.1")
testImplementation("org.testcontainers:postgresql:1.20.3")
Expand All @@ -79,7 +79,7 @@ dependencies {
testImplementation("org.apache.poi:poi-ooxml:5.3.0")
testImplementation("org.slf4j:slf4j-simple:2.0.13")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.17.1")
testImplementation("com.amazonaws:aws-xray-recorder-sdk-core:2.18.1")
testImplementation("com.amazonaws:aws-xray-recorder-sdk-core:2.18.2")
testImplementation("io.opentelemetry:opentelemetry-api:1.42.1")
testImplementation("io.opentelemetry:opentelemetry-sdk:1.42.1")
testImplementation("io.opentelemetry:opentelemetry-sdk-metrics:1.43.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,9 @@ protected void initFailoverMode() {
this.rdsUrlType = this.rdsHelper.identifyRdsType(initialHostSpec.getHost());

if (this.failoverMode == null) {
if (this.rdsUrlType.isRdsCluster()) {
this.failoverMode = (this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER)
? FailoverMode.READER_OR_WRITER
: FailoverMode.STRICT_WRITER;
} else {
this.failoverMode = FailoverMode.STRICT_WRITER;
}
this.failoverMode = this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER
? FailoverMode.READER_OR_WRITER
: FailoverMode.STRICT_WRITER;
}

LOGGER.finer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,9 @@ protected void initFailoverMode() {
this.rdsUrlType = this.rdsHelper.identifyRdsType(initialHostSpec.getHost());

if (this.failoverMode == null) {
if (this.rdsUrlType.isRdsCluster()) {
this.failoverMode = (this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER)
? FailoverMode.READER_OR_WRITER
: FailoverMode.STRICT_WRITER;
} else {
this.failoverMode = FailoverMode.STRICT_WRITER;
}
this.failoverMode = this.rdsUrlType == RdsUrlType.RDS_READER_CLUSTER
? FailoverMode.READER_OR_WRITER
: FailoverMode.STRICT_WRITER;
}

LOGGER.finer(
Expand Down
54 changes: 27 additions & 27 deletions wrapper/src/test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,37 @@ repositories {
}

dependencies {
testImplementation("org.junit.platform:junit-platform-commons:1.8.2")
testImplementation("org.junit.platform:junit-platform-engine:1.8.2")
testImplementation("org.junit.platform:junit-platform-launcher:1.8.2")
testImplementation("org.junit.platform:junit-platform-suite-engine:1.8.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2")
testImplementation("org.junit.platform:junit-platform-commons:1.11.3")
testImplementation("org.junit.platform:junit-platform-engine:1.11.0")
testImplementation("org.junit.platform:junit-platform-launcher:1.11.3")
testImplementation("org.junit.platform:junit-platform-suite-engine:1.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

testImplementation("org.apache.commons:commons-dbcp2:2.8.0")
testImplementation("org.postgresql:postgresql:42.7.3")
testImplementation("mysql:mysql-connector-java:8.0.33")
testImplementation("org.mariadb.jdbc:mariadb-java-client:3.1.0")
testImplementation("com.zaxxer:HikariCP:4.+") // version 4.+ is compatible with Java 8
testImplementation("org.apache.commons:commons-dbcp2:2.12.0")
testImplementation("org.postgresql:postgresql:42.7.4")
testImplementation("com.mysql:mysql-connector-j:8.3.0")
testImplementation("org.mariadb.jdbc:mariadb-java-client:3.4.1")
testImplementation("com.zaxxer:HikariCP:4.0.3") // Version 4.+ is compatible with Java 8
testImplementation("org.springframework.boot:spring-boot-starter-jdbc:2.7.13") // 2.7.13 is the last version compatible with Java 8
testImplementation("org.mockito:mockito-inline:4.11.0") // 4.11.0 is the last version compatible with Java 8
testImplementation("software.amazon.awssdk:ec2:2.29.23")
testImplementation("software.amazon.awssdk:rds:2.29.23")
testImplementation("software.amazon.awssdk:sts:2.29.23")
testImplementation("org.testcontainers:testcontainers:1.17.+")
testImplementation("org.testcontainers:mysql:1.17.+")
testImplementation("org.testcontainers:postgresql:1.17.+")
testImplementation("org.testcontainers:mariadb:1.17.+")
testImplementation("org.testcontainers:junit-jupiter:1.17.+")
testImplementation("org.testcontainers:toxiproxy:1.17.+")
testImplementation("org.apache.poi:poi-ooxml:5.2.2")
testImplementation("org.slf4j:slf4j-simple:1.7.+")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.13.4")
testImplementation("com.amazonaws:aws-xray-recorder-sdk-core:2.14.0")
testImplementation("io.opentelemetry:opentelemetry-sdk:1.29.0")
testImplementation("io.opentelemetry:opentelemetry-sdk-metrics:1.29.0")
testImplementation("io.opentelemetry:opentelemetry-exporter-otlp:1.29.0")
testImplementation("software.amazon.awssdk:ec2:2.29.34")
testImplementation("software.amazon.awssdk:rds:2.29.34")
testImplementation("software.amazon.awssdk:sts:2.29.34")
testImplementation("org.testcontainers:testcontainers:1.20.1")
testImplementation("org.testcontainers:mysql:1.20.1")
testImplementation("org.testcontainers:postgresql:1.20.3")
testImplementation("org.testcontainers:mariadb:1.20.2")
testImplementation("org.testcontainers:junit-jupiter:1.20.1")
testImplementation("org.testcontainers:toxiproxy:1.20.2")
testImplementation("org.apache.poi:poi-ooxml:5.3.0")
testImplementation("org.slf4j:slf4j-simple:2.0.13")
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.17.1")
testImplementation("com.amazonaws:aws-xray-recorder-sdk-core:2.18.2")
testImplementation("io.opentelemetry:opentelemetry-sdk:1.42.1")
testImplementation("io.opentelemetry:opentelemetry-sdk-metrics:1.43.0")
testImplementation("io.opentelemetry:opentelemetry-exporter-otlp:1.44.1")
}

tasks.withType<Test> {
Expand Down

0 comments on commit f5b9dd6

Please sign in to comment.