Skip to content

Commit

Permalink
fix(datahub-client): prevent unneeded classes in datahub-client jar (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Dec 5, 2024
1 parent 14fe889 commit cb7d687
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion entity-registry/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply from: "../gradle/coverage/java-coverage.gradle"

dependencies {
implementation spec.product.pegasus.data
implementation spec.product.pegasus.generator
compileOnly spec.product.pegasus.generator
api project(path: ':metadata-models')
api project(path: ':metadata-models', configuration: "dataTemplate")
api externalDependency.classGraph
Expand Down
1 change: 1 addition & 0 deletions metadata-integration/java/datahub-event/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies {
implementation externalDependency.jacksonDataBind
runtimeOnly externalDependency.jna

compileOnly externalDependency.swaggerAnnotations
compileOnly externalDependency.lombok
annotationProcessor externalDependency.lombok
// VisibleForTesting
Expand Down
15 changes: 9 additions & 6 deletions metadata-models/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ plugins {
apply from: '../gradle/coverage/java-coverage.gradle'

dependencies {
api spec.product.pegasus.data
constraints {
implementation('org.apache.commons:commons-text:1.10.0') {
because 'Vulnerability Issue'
}
constraints {
implementation('org.apache.commons:commons-text:1.10.0') {
because 'Vulnerability Issue'
}
}

api(spec.product.pegasus.data) {
exclude group: 'javax.servlet', module: 'javax.servlet-api'
}
api project(':li-utils')
api project(path: ':li-utils', configuration: "dataTemplate")
dataModel project(':li-utils')
Expand All @@ -26,7 +29,7 @@ dependencies {

compileOnly externalDependency.lombok
annotationProcessor externalDependency.lombok
api externalDependency.swaggerAnnotations
compileOnly externalDependency.swaggerAnnotations
compileOnly externalDependency.jacksonCore
compileOnly externalDependency.jacksonDataBind

Expand Down
1 change: 1 addition & 0 deletions metadata-service/openapi-servlet/models/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {
implementation externalDependency.jacksonDataBind
implementation externalDependency.httpClient

compileOnly externalDependency.swaggerAnnotations
compileOnly externalDependency.lombok

annotationProcessor externalDependency.lombok
Expand Down

0 comments on commit cb7d687

Please sign in to comment.