Skip to content

Commit b51b7ed

Browse files
authored
Exclude guava, jackson-core, jackson-databind from jib-core (#6884)
Previous to introduce support for Jib in f78c0c3. 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.
1 parent f50ddc0 commit b51b7ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/build.gradle

+8-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ dependencies {
7676
exclude(group: 'org.jetbrains', module: 'annotations')
7777
}
7878

79-
provided 'com.google.cloud.tools:jib-core:0.22.0'
79+
provided('com.google.cloud.tools:jib-core:0.22.0') {
80+
exclude group: 'com.google.guava', module: 'guava'
81+
exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jsr310'
82+
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
83+
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
84+
exclude group: 'org.apache.commons', module: 'commons-compress'
85+
}
8086

8187
shaded 'org.awaitility:awaitility:4.2.0'
8288

@@ -95,6 +101,7 @@ dependencies {
95101

96102
shaded 'org.zeroturnaround:zt-exec:1.12'
97103

104+
testImplementation 'com.google.cloud.tools:jib-core:0.22.0'
98105
testImplementation 'org.apache.httpcomponents:httpclient:4.5.9'
99106
testImplementation 'redis.clients:jedis:4.3.1'
100107
testImplementation 'com.rabbitmq:amqp-client:5.16.0'

0 commit comments

Comments
 (0)