From 44c202311615ffcbc20af65091d470b43bc2b36c Mon Sep 17 00:00:00 2001 From: Bruno Volpato Date: Mon, 13 Nov 2023 00:24:08 -0500 Subject: [PATCH 1/2] Mark Avro as provided in harness JAR --- sdks/java/harness/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/sdks/java/harness/build.gradle b/sdks/java/harness/build.gradle index 50eed2f2573b..36592c212dad 100644 --- a/sdks/java/harness/build.gradle +++ b/sdks/java/harness/build.gradle @@ -30,6 +30,7 @@ dependencies { provided project(path: ":model:pipeline", configuration: "shadow") provided project(path: ":sdks:java:core", configuration: "shadow") provided project(path: ":sdks:java:transform-service:launcher", configuration: "shadow") + provided library.java.avro provided library.java.joda_time provided library.java.slf4j_api provided library.java.vendored_grpc_1_54_0 From 3dc6156129bddef905ef4587454a3ab2e4f86c03 Mon Sep 17 00:00:00 2001 From: Bruno Volpato Date: Mon, 13 Nov 2023 10:47:20 -0500 Subject: [PATCH 2/2] Add permitUnusedDeclared for Avro --- sdks/java/harness/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/sdks/java/harness/build.gradle b/sdks/java/harness/build.gradle index 36592c212dad..937e870a22f4 100644 --- a/sdks/java/harness/build.gradle +++ b/sdks/java/harness/build.gradle @@ -94,4 +94,5 @@ dependencies { shadowTestRuntimeClasspath project(path: ":sdks:java:core", configuration: "shadowTest") testImplementation project(path: ":sdks:java:fn-execution", configuration: "testRuntimeMigration") shadowTestRuntimeClasspath library.java.slf4j_jdk14 + permitUnusedDeclared library.java.avro }