2828 testcontainersVersion = ' 1.18.3'
2929 sentryVersion = ' 6.34.0'
3030}
31-
31+ configurations. all {
32+ resolutionStrategy {
33+ force ' com.google.guava:guava:32.1.3-jre'
34+ }
35+ }
3236dependencies {
3337 implementation project(' :clients:java' )
3438 implementation " io.dropwizard:dropwizard-core:${ dropwizardVersion} "
@@ -54,9 +58,15 @@ dependencies {
5458 implementation ' org.glassfish:jakarta.el:4.0.2'
5559
5660 // GraphQL dependencies with Jakarta EE 9 support
57- implementation " com.graphql-java:graphql-java:${ graphqlJavaVersion} "
58- implementation " com.graphql-java-kickstart:graphql-java-servlet:${ graphqlServletVersion} "
59- implementation " com.graphql-java-kickstart:graphql-java-kickstart:${ graphqlServletVersion} "
61+ implementation (" com.graphql-java:graphql-java:${ graphqlJavaVersion} " ) {
62+ exclude group : ' com.google.guava' , module : ' guava'
63+ }
64+ implementation (" com.graphql-java-kickstart:graphql-java-servlet:${ graphqlServletVersion} " ) {
65+ exclude group : ' com.google.guava' , module : ' guava'
66+ }
67+ implementation (" com.graphql-java-kickstart:graphql-java-kickstart:${ graphqlServletVersion} " ) {
68+ exclude group : ' com.google.guava' , module : ' guava'
69+ }
6070
6171 implementation " io.prometheus:simpleclient_servlet_jakarta:0.16.0"
6272 implementation " io.prometheus:simpleclient_common:0.16.0"
@@ -74,6 +84,7 @@ dependencies {
7484 implementation ' org.flywaydb:flyway-core:8.5.13'
7585 implementation " org.postgresql:postgresql:${ postgresqlVersion} "
7686 implementation " io.openlineage:openlineage-java:0.30.1"
87+ implementation ' org.apache.httpcomponents:httpclient:4.5.14'
7788
7889 implementation ' org.opensearch.client:opensearch-rest-client:2.19.1'
7990 implementation ' org.opensearch.client:opensearch-java:2.22.0'
@@ -86,7 +97,6 @@ dependencies {
8697 testImplementation " org.junit.vintage:junit-vintage-engine:${ junit5Version} "
8798 testImplementation " org.testcontainers:postgresql:${ testcontainersVersion} "
8899 testImplementation " org.testcontainers:junit-jupiter:${ testcontainersVersion} "
89- testImplementation ' org.apache.httpcomponents:httpclient:4.5.14'
90100 testImplementation " org.junit.jupiter:junit-jupiter-api:${ junit5Version} "
91101 testImplementation " org.junit.jupiter:junit-jupiter-engine:${ junit5Version} "
92102 testImplementation " org.junit.jupiter:junit-jupiter-params:${ junit5Version} "
@@ -205,12 +215,22 @@ shadowJar {
205215 include ' LICENSE'
206216 }
207217 mergeServiceFiles()
218+ // Include all dependencies by default
219+ exclude ' io/dropwizard/logback/shaded/guava/**'
220+ exclude ' META-INF/maven/com.google.guava/**' // Optional: only if you want zero guava metadata
221+
208222 dependencies {
209- include(dependency(' jakarta.platform:jakarta.jakartaee-api' ))
210- include(dependency(' jakarta.platform:jakarta.jakartaee-bom' ))
211- include(dependency(' jakarta.annotation:jakarta.annotation-api' ))
212- include(dependency(' jakarta.validation:jakarta.validation-api' ))
213- include(dependency(' io.dropwizard:dropwizard-jdbi3' ))
223+ exclude { dep ->
224+ dep. moduleGroup == ' com.google.guava' &&
225+ (dep. moduleName == ' guava' && dep. moduleVersion == ' 31.0.1-jre' )
226+ }
227+ // exclude(dependency('com.google.guava:guava'))
228+ // Exclude test dependencies
229+ exclude(dependency(' org.junit:.*' ))
230+ exclude(dependency(' org.testcontainers:.*' ))
231+ exclude(dependency(' org.junit.jupiter:.*' ))
232+ exclude(dependency(' org.junit.vintage:.*' ))
233+ exclude(dependency(' com.google.guava:guava:31.0.1-jre' ))
214234 }
215235 manifest {
216236 attributes(
0 commit comments