From 821a1694c5c0910f3f4df79d52fa482499fb6667 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Mon, 22 Jan 2024 21:19:17 -0500 Subject: [PATCH] Fix Cassandra Test (#30075) * Fix Cassandra Test * Fix Java CassandraIO PreCommit --- sdks/java/io/cassandra/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdks/java/io/cassandra/build.gradle b/sdks/java/io/cassandra/build.gradle index 0a1f2f4accda..22208d6828c5 100644 --- a/sdks/java/io/cassandra/build.gradle +++ b/sdks/java/io/cassandra/build.gradle @@ -31,6 +31,14 @@ ext.summary = "IO to read and write with Apache Cassandra database" // compatible with all Cassandra versions up to 3.11.10 def achilles_version = "6.1.0" +configurations.testRuntimeClasspath { + // Force use the old version of JAMM that embedded cassandra server relies on + // TODO(yathu) bump to cassandra-5.x which uses newer jamm when + // * cassandra-5.x released + // * Beam tests with Java11+ (cassandra 5-beta dropped Java8 release) + resolutionStrategy.force 'com.github.jbellis:jamm:0.3.0' +} + dependencies { implementation library.java.vendored_guava_32_1_2_jre implementation project(path: ":sdks:java:core", configuration: "shadow")