From 2ccee1783247afe39caa941b417907a6f9751add Mon Sep 17 00:00:00 2001 From: Andrew Pilloud Date: Mon, 21 Nov 2022 15:50:41 -0800 Subject: [PATCH] Exclude jamm from harness jar --- sdks/java/harness/build.gradle | 4 ++-- sdks/java/harness/jmh/build.gradle | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdks/java/harness/build.gradle b/sdks/java/harness/build.gradle index 5f7516c7772b..73a3c09f3e78 100644 --- a/sdks/java/harness/build.gradle +++ b/sdks/java/harness/build.gradle @@ -32,6 +32,8 @@ dependencies { provided library.java.slf4j_api provided library.java.vendored_grpc_1_48_1 provided library.java.vendored_guava_26_0_jre + + provided library.java.jamm } applyJavaNature( @@ -51,7 +53,6 @@ applyJavaNature( "org/apache/beam/runners/core/construction/**", "org/apache/beam/sdk/fn/**", "org/checkerframework/**", - "org/github/jamm/**", "org/hamcrest/**", "org/junit/**", ], @@ -75,7 +76,6 @@ dependencies { implementation project(":runners:core-construction-java") implementation project(":runners:core-java") implementation project(":sdks:java:fn-execution") - implementation library.java.jamm testImplementation library.java.junit testImplementation library.java.mockito_core shadowTestRuntimeClasspath project(path: ":sdks:java:core", configuration: "shadowTest") diff --git a/sdks/java/harness/jmh/build.gradle b/sdks/java/harness/jmh/build.gradle index 9a284312cae1..14062a379a34 100644 --- a/sdks/java/harness/jmh/build.gradle +++ b/sdks/java/harness/jmh/build.gradle @@ -41,6 +41,7 @@ dependencies { implementation library.java.joda_time runtimeOnly library.java.slf4j_jdk14 jammAgent library.java.jamm + testRuntimeOnly library.java.jamm } jmh {