From b51b7ed5c7e27c2366583a3f04ec2caddf2e21ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez=20Gonzales?= Date: Mon, 3 Apr 2023 12:26:55 -0400 Subject: [PATCH] Exclude guava, jackson-core, jackson-databind from jib-core (#6884) Previous to introduce support for Jib in f78c0c32. The dependencies mentioned were shaded. However, after introducing Jib, those transitive dependencies became part of the API. For that reason, currently, those are not shaded. --- core/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/build.gradle b/core/build.gradle index 040cd1809e0..a8417e69d37 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -76,7 +76,13 @@ dependencies { exclude(group: 'org.jetbrains', module: 'annotations') } - provided 'com.google.cloud.tools:jib-core:0.22.0' + provided('com.google.cloud.tools:jib-core:0.22.0') { + exclude group: 'com.google.guava', module: 'guava' + exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jsr310' + exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core' + exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind' + exclude group: 'org.apache.commons', module: 'commons-compress' + } shaded 'org.awaitility:awaitility:4.2.0' @@ -95,6 +101,7 @@ dependencies { shaded 'org.zeroturnaround:zt-exec:1.12' + testImplementation 'com.google.cloud.tools:jib-core:0.22.0' testImplementation 'org.apache.httpcomponents:httpclient:4.5.9' testImplementation 'redis.clients:jedis:4.3.1' testImplementation 'com.rabbitmq:amqp-client:5.16.0'